Skip to content

Commit

Permalink
Merge pull request #62 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 6, 2022
2 parents 719ab94 + 60a7020 commit 502138d
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": "2.0.4",
"VERSION": "2.0.5",
"NAME": "Spycloud Employee Ato Prevention Relay"
}

0 comments on commit 502138d

Please sign in to comment.