Skip to content
Snippets Groups Projects
Commit a0ef957f authored by inso's avatar inso
Browse files

Fix error when exception in toast

parent 7450c019
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,7 @@ def display(title, msg): ...@@ -23,6 +23,7 @@ def display(title, msg):
notify2.init("cutecoin") notify2.init("cutecoin")
n = notify2.Notification(title, n = notify2.Notification(title,
msg) msg)
n.show()
except ImportError: except ImportError:
_Toast(title, msg) _Toast(title, msg)
...@@ -46,7 +47,6 @@ def display(title, msg): ...@@ -46,7 +47,6 @@ def display(title, msg):
# ) # )
# n.set_hint('icon_data', icon_struct) # n.set_hint('icon_data', icon_struct)
# n.set_timeout(5000) # n.set_timeout(5000)
n.show()
else: else:
_Toast(title, msg) _Toast(title, msg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment