Skip to content
Snippets Groups Projects
Commit 3a1659ff authored by Qinusty's avatar Qinusty
Browse files

widget.py: Require message.logfile for log widget

Prevent traceback in the case which a FAIL message is produced without a
logfile being specified.

Fixes: #619
parent 7e31aa8d
No related branches found
No related tags found
No related merge requests found
......@@ -679,7 +679,7 @@ class LogLine(Widget):
text += '\n'
extra_nl = True
if message.scheduler and message.message_type == MessageType.FAIL:
if message.logfile and message.scheduler and message.message_type == MessageType.FAIL:
text += '\n'
if self.context is not None and not self.context.log_verbose:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment