Resolve warning issue with error handler mismatch warning
This commit is contained in:
parent
cc97287f8e
commit
3a1a9f071d
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user