Skip to content

Commit

Permalink
add logging on error
Browse files Browse the repository at this point in the history
  • Loading branch information
gkorland committed Dec 21, 2023
1 parent 4355a00 commit eed1112
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ def get_graph_history():
)
return jsonify(result)
except Exception as e:
logging.error("%s", e)
return jsonify({"error": str(e), "graph": driver is not None}), 500


Expand Down

0 comments on commit eed1112

Please sign in to comment.