Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 588994508
  • Loading branch information
colaboratory-team committed Dec 8, 2023
1 parent c8ca9c0 commit 5c74194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/colab/_import_hooks/_generativeai.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async def _handle_request(self):
self.set_status(int(result['error']['code']))
self.write(result['error']['message'])
return
self.write(result)
self.write(json.dumps(result))
except Exception as e: # pylint:disable=broad-except
self.set_status(500)
self.write(str(e))
Expand Down

0 comments on commit 5c74194

Please sign in to comment.