Commit d5925d25 authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #46 from beyondwords/fix-action-confirm-none

Prevent None being converted to string and causing confirmation pop-up
parents 17a6980c 7b914b9f
...@@ -83,7 +83,9 @@ class ActionsMixin(object): ...@@ -83,7 +83,9 @@ class ActionsMixin(object):
text = unicode(text) text = unicode(text)
actions.append((name, text)) actions.append((name, text))
actions_confirmation[name] = unicode(self._actions_data[name][2]) confirmation = self._actions_data[name][2]
if confirmation:
actions_confirmation[name] = unicode(confirmation)
return actions, actions_confirmation return actions, actions_confirmation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment