Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
senpy
senpy
Commits
b6de72a1
Commit
b6de72a1
authored
May 16, 2017
by
Ian Wood
Committed by
J. Fernando Sánchez
May 17, 2017
Browse files
chaged exception logging to 'exception()' in analysie()
parent
13cefbed
Changes
1
Show whitespace changes
Inline
Side-by-side
senpy/extensions.py
View file @
b6de72a1
...
@@ -178,7 +178,7 @@ class Senpy(object):
...
@@ -178,7 +178,7 @@ class Senpy(object):
except
(
Error
,
Exception
)
as
ex
:
except
(
Error
,
Exception
)
as
ex
:
if
not
isinstance
(
ex
,
Error
):
if
not
isinstance
(
ex
,
Error
):
ex
=
Error
(
message
=
str
(
ex
),
status
=
500
)
ex
=
Error
(
message
=
str
(
ex
),
status
=
500
)
logger
.
e
rror
(
'Error returning analysis result'
)
logger
.
e
xception
(
'Error returning analysis result'
)
raise
ex
raise
ex
return
resp
return
resp
...
...
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