mirror of
https://gitlab.com/0xDEAD10CC/pycoindroid
synced 2025-07-05 20:41:08 -07:00
update
This commit is contained in:
parent
89aee67396
commit
e103023d4d
1 changed files with 3 additions and 0 deletions
|
@ -44,6 +44,9 @@ class DroidControllerTask(CoindroidAPITask):
|
||||||
targetName = event.get("target").get("name")
|
targetName = event.get("target").get("name")
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
self.logger.exception("Unknown target!")
|
self.logger.exception("Unknown target!")
|
||||||
|
if not event:
|
||||||
|
self.logger.error("Empty event!")
|
||||||
|
return {}
|
||||||
return {
|
return {
|
||||||
"block_height": event.get("block_height"),
|
"block_height": event.get("block_height"),
|
||||||
"action_id": event.get("action_id"),
|
"action_id": event.get("action_id"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue