fix pylint
This commit is contained in:
parent
86d2bf919d
commit
5857be3133
@ -23,7 +23,8 @@ import logging
|
||||
import sys
|
||||
|
||||
# Default fallback format
|
||||
FALL_FORMAT = 'FALLBACK: %(asctime)s - %(filename)s[%(levelname)s]: %(message)s'
|
||||
FALL_FORMAT = ('FALLBACK: %(asctime)s - %(filename)s[%(levelname)s]: ' +
|
||||
'%(message)s')
|
||||
|
||||
|
||||
class QuietStreamHandler(logging.StreamHandler):
|
||||
@ -40,7 +41,7 @@ def _patch_logging():
|
||||
fallback_handler = QuietStreamHandler(sys.stderr)
|
||||
fallback_handler.setFormatter(logging.Formatter(FALL_FORMAT))
|
||||
|
||||
def handleError(self, record):
|
||||
def handleError(self, record): # pylint: disable=W0613
|
||||
try:
|
||||
fallback_handler.handle(record)
|
||||
fallback_handler.flush()
|
||||
|
Loading…
Reference in New Issue
Block a user