Commit 385ff6cb authored by Roque's avatar Roque

try catch on new actions handling

parent 1a64a95e
...@@ -188,8 +188,11 @@ class CacheableAction(object): ...@@ -188,8 +188,11 @@ class CacheableAction(object):
def cook(self, ec): def cook(self, ec):
param_dict = self.param_dict.copy() param_dict = self.param_dict.copy()
action = self.action try:
param_dict['url'] = action is not None and action(ec) or '' action = self.action
icon = self.icon param_dict['url'] = action is not None and action(ec) or ''
param_dict['icon'] = icon is not None and icon(ec) or '' icon = self.icon
param_dict['icon'] = icon is not None and icon(ec) or ''
except:
pass
return param_dict return param_dict
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