Avoid pylint duplicate-code warning.
This commit is contained in:
parent
0827ddec86
commit
edf762e210
@ -52,6 +52,8 @@ def qt_message_handler(msg_type, context, msg):
|
||||
QtFatalMsg: logging.CRITICAL,
|
||||
}
|
||||
level = qt_to_logging[msg_type]
|
||||
# There's very similiar code in utils.log, but we want it duplicated here
|
||||
# for the tests.
|
||||
if context.function is None:
|
||||
func = 'none'
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user