Skip to content

Commit

Permalink
Merge pull request #70 from CiscoSecurity/release-2.0.5
Browse files Browse the repository at this point in the history
Release 2.0.5
  • Loading branch information
mstoro authored Apr 5, 2022
2 parents 5236f90 + fab017b commit 185a332
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion code/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@ def handle_relay_error(error):

@app.errorhandler(Exception)
def handle_error(exception):
app.logger.error(traceback.format_exc())
code = getattr(exception, 'code', 500)
message = getattr(exception, 'description', 'Something went wrong.')
reason = '.'.join([
exception.__class__.__module__,
exception.__class__.__name__,
])

if code != 404:
app.logger.error(traceback.format_exc())

response = jsonify(code=code, message=message, reason=reason)
return response, code

Expand Down
2 changes: 1 addition & 1 deletion code/container_settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"VERSION": "2.0.4",
"VERSION": "2.0.5",
"NAME": "Gigamon ThreatINSIGHT"
}

0 comments on commit 185a332

Please sign in to comment.