Update sanic/handlers/error.py

Missed one in previous commit
This commit is contained in:
L. Kärkkäinen 2023-10-25 02:43:54 +00:00 committed by GitHub
parent cdc5dd6b75
commit 469cb1663b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,7 @@ class ErrorHandler:
error_logger.exception(response_message)
if self.debug:
return text(response_message % (handler.__name__, url), 500)
return text(response_message, 500)
else:
return text("An error occurred while handling an error", 500)
return response