Update sanic/handlers/error.py
Missed one in previous commit
This commit is contained in:
parent
cdc5dd6b75
commit
469cb1663b
|
@ -137,7 +137,7 @@ class ErrorHandler:
|
||||||
error_logger.exception(response_message)
|
error_logger.exception(response_message)
|
||||||
|
|
||||||
if self.debug:
|
if self.debug:
|
||||||
return text(response_message % (handler.__name__, url), 500)
|
return text(response_message, 500)
|
||||||
else:
|
else:
|
||||||
return text("An error occurred while handling an error", 500)
|
return text("An error occurred while handling an error", 500)
|
||||||
return response
|
return response
|
||||||
|
|
Loading…
Reference in New Issue
Block a user