Skip to content

Commit 54220bd

Browse files
authored
Merge pull request #82 from CiscoSecurity/release-2.0.5
Release 2.0.5
2 parents e3cd42d + d7d4f86 commit 54220bd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

code/app.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,16 @@
2424

2525
@app.errorhandler(Exception)
2626
def handle_error(exception):
27-
app.logger.error(traceback.format_exc())
2827
code = getattr(exception, 'code', 500)
2928
message = getattr(exception, 'description', 'Something went wrong.')
3029
reason = '.'.join([
3130
exception.__class__.__module__,
3231
exception.__class__.__name__,
3332
])
3433

34+
if code != 404:
35+
app.logger.error(traceback.format_exc())
36+
3537
response = jsonify(code=code, message=message, reason=reason)
3638
return response, code
3739

code/container_settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"VERSION": "2.0.4",
2+
"VERSION": "2.0.5",
33
"NAME": "Pulsedive"
44
}

0 commit comments

Comments
 (0)