Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
synergy
o3skim
Commits
53da587e
Commit
53da587e
authored
Dec 07, 2020
by
BorjaEst
Browse files
bugfix, return on failure should return function result
parent
c219d63c
Changes
1
Show whitespace changes
Inline
Side-by-side
o3skim/utils.py
View file @
53da587e
...
...
@@ -45,9 +45,9 @@ def return_on_failure(message):
def
decorate
(
function
):
def
applicator
(
*
args
,
**
kwargs
):
try
:
function
(
*
args
,
**
kwargs
)
return
function
(
*
args
,
**
kwargs
)
except
:
# Log error with stak using root (not utils)
# Log error with sta
c
k using root (not utils)
logging
.
error
(
message
,
exc_info
=
True
)
return
applicator
return
decorate
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment