Skip to content

Commit

Permalink
Merge pull request #38 from CiscoSecurity/release-1.0.5
Browse files Browse the repository at this point in the history
Release 1.0.5
  • Loading branch information
mstoro authored Apr 8, 2022
2 parents 2218b64 + 02ea132 commit 0436973
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 @@ -22,14 +22,16 @@

@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": "1.0.4",
"VERSION": "1.0.5",
"NAME": "Sumo Logic"
}

0 comments on commit 0436973

Please sign in to comment.