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

_message.py: Assert elapsed is set for SKIPPED

parent 2fd4a366
No related branches found
No related tags found
Loading
......@@ -76,7 +76,7 @@ class Message():
self.task_id = task_id # The plugin object ID of the task
self.scheduler = scheduler # Whether this is a scheduler level message
self.creation_time = datetime.datetime.now()
if message_type in (MessageType.SUCCESS, MessageType.FAIL):
if message_type in (MessageType.SUCCESS, MessageType.FAIL, MessageType.SKIPPED):
assert elapsed is not None
# logfile should always be associated with these messages
if message_type in (MessageType.START, MessageType.SUCCESS, MessageType.FAIL, MessageType.SKIPPED):
......
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