Resolve warning issue with error handler mismatch warning (#2452)

This commit is contained in:
Adam Hopkins 2022-05-11 09:36:05 +03:00 committed by GitHub
parent 5d683c6ea4
commit 293278bb08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ class ErrorHandler:
@classmethod @classmethod
def _get_fallback_value(cls, error_handler: ErrorHandler, config: Config): def _get_fallback_value(cls, error_handler: ErrorHandler, config: Config):
if error_handler._fallback is not _default: 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 return error_handler.fallback
error_logger.warning( error_logger.warning(