Resolve warning issue with error handler mismatch warning (#2452)
This commit is contained in:
parent
5d683c6ea4
commit
293278bb08
|
@ -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