forked from 0x2620/pandora
check body
This commit is contained in:
parent
7d8b38e627
commit
7ea1f38a0f
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class Worker(ConsumerMixin):
|
||||||
|
|
||||||
def process_task(self, body, message):
|
def process_task(self, body, message):
|
||||||
try:
|
try:
|
||||||
if body['task'] == 'trigger_event':
|
if isinstance(body, dict) and body.get('task') == 'trigger_event':
|
||||||
daemon.trigger_event(*body['args'])
|
daemon.trigger_event(*body['args'])
|
||||||
except:
|
except:
|
||||||
logger.error('faild to trigger event %s', body, exc_info=True)
|
logger.error('faild to trigger event %s', body, exc_info=True)
|
||||||
|
|
Loading…
Reference in a new issue