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()
try:
action = self.action action = self.action
param_dict['url'] = action is not None and action(ec) or '' param_dict['url'] = action is not None and action(ec) or ''
icon = self.icon icon = self.icon
param_dict['icon'] = icon is not None and icon(ec) or '' 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