From 3a1a9f071df24e2fe0ff5aac7d529019034fe898 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Tue, 10 May 2022 22:31:22 +0300 Subject: [PATCH] Resolve warning issue with error handler mismatch warning --- sanic/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/handlers.py b/sanic/handlers.py index b3f01566..917edd23 100644 --- a/sanic/handlers.py +++ b/sanic/handlers.py @@ -78,7 +78,7 @@ class ErrorHandler: @classmethod def _get_fallback_value(cls, error_handler: ErrorHandler, config: Config): if error_handler._fallback is not _default: - if config._FALLBACK_ERROR_FORMAT is _default: + if config._FALLBACK_ERROR_FORMAT == error_handler._fallback: return error_handler.fallback error_logger.warning(