Skip to content

Commit

Permalink
debugging error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
edeutsch committed Jul 13, 2023
1 parent 0d54a17 commit 070275b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/ARAX/ARAXQuery/ARAX_query_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,12 @@ def create_database(self):
##################################################################################################
def update_tracker_entry(self, tracker_id, attributes):
if tracker_id is None:
eprint("ERROR: update_tracker_entry: tracker_id is None")
return

session = self.session
if session is None:
eprint("ERROR: update_tracker_entry: session is None")
return

tracker_entries = session.query(ARAXQuery).filter(ARAXQuery.query_id==tracker_id).all()
Expand All @@ -211,6 +213,7 @@ def update_tracker_entry(self, tracker_id, attributes):
eprint(f"INFO: Deleted ARAXOngoingQuery.query_id={tracker_id}")
except:
eprint(f"ERROR: Unable to delete ARAXOngoingQuery.query_id={tracker_id}")
session.commit()



Expand Down

0 comments on commit 070275b

Please sign in to comment.