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):
def decorate(function):
def applicator(*args, **kwargs):
function(*args, **kwargs)
return function(*args, **kwargs)
# Log error with stak using root (not utils)
# Log error with stack using root (not utils)
logging.error(message, exc_info=True)
return applicator
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