mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-12-26 03:02:16 +03:00
Task message init None check
This commit is contained in:
parent
30689c31ad
commit
e35f538387
1 changed files with 4 additions and 1 deletions
|
@ -11,7 +11,10 @@ class Task(object):
|
|||
"""docstring for Task"""
|
||||
|
||||
def __init__(self, message):
|
||||
self.task = message['task']
|
||||
#TODO message must be json !!! otherwise we can not use task json methods!
|
||||
#Remove if condition and change message param to json task type.
|
||||
if message:
|
||||
self.task = message['task']
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
|
|
Loading…
Reference in a new issue