Skip to content

Commit 6eb941a

Browse files
committed
beter
1 parent 6cf98de commit 6eb941a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

science/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def error():
5555
def handle_exception(e):
5656
# now you're handling non-HTTP exceptions only
5757
msg = f"Sadly, OpenAI appears to be down. Please try again later. ({e.__class__.__name__})"
58-
app.logger.error(msg)
58+
app.log_exception(msg)
5959
return msg, 500
6060

6161

0 commit comments

Comments
 (0)