Avoid pylint duplicate-code warning.

This commit is contained in:
Florian Bruhin 2015-03-06 17:04:56 +01:00
parent 0827ddec86
commit edf762e210

View File

@ -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: