Skip to content

Commit

Permalink
Merge pull request #79 from CiscoSecurity/release-2.0.4
Browse files Browse the repository at this point in the history
Release 2.0.4
  • Loading branch information
mstoro authored Dec 20, 2021
2 parents 0537485 + 32cc1ea commit e3cd42d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions code/app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import traceback

from flask import Flask, jsonify, g

from api.enrich import enrich_api
Expand All @@ -22,7 +24,7 @@

@app.errorhandler(Exception)
def handle_error(exception):
app.logger.error(exception)
app.logger.error(traceback.format_exc())
code = getattr(exception, 'code', 500)
message = getattr(exception, 'description', 'Something went wrong.')
reason = '.'.join([
Expand All @@ -36,7 +38,7 @@ def handle_error(exception):

@app.errorhandler(TRFormattedError)
def handle_pusledive_errors(error):
app.logger.error(error.json)
app.logger.error(traceback.format_exc())
g.errors = [error.json]
return jsonify_result()

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.3",
"VERSION": "2.0.4",
"NAME": "Pulsedive"
}

0 comments on commit e3cd42d

Please sign in to comment.