Commit 53da587e authored by BorjaEst's avatar BorjaEst
Browse files

bugfix, return on failure should return function result

parent c219d63c
...@@ -45,9 +45,9 @@ def return_on_failure(message): ...@@ -45,9 +45,9 @@ def return_on_failure(message):
def decorate(function): def decorate(function):
def applicator(*args, **kwargs): def applicator(*args, **kwargs):
try: try:
function(*args, **kwargs) return function(*args, **kwargs)
except: except:
# Log error with stak using root (not utils) # Log error with stack using root (not utils)
logging.error(message, exc_info=True) logging.error(message, exc_info=True)
return applicator return applicator
return decorate return decorate
......
Supports Markdown
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