Resolve warning issue with error handler mismatch warning

This commit is contained in:
Adam Hopkins 2022-05-10 22:31:22 +03:00
parent cc97287f8e
commit 3a1a9f071d
No known key found for this signature in database
GPG Key ID: 9F85EE6C807303FB

View File

@ -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(