Skip to content

Commit

Permalink
Remove try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
bram-vdberg committed Dec 13, 2024
1 parent 526afb6 commit 2fb2fcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Binary file modified src/.pg_client.py.swp
Binary file not shown.
10 changes: 3 additions & 7 deletions src/pg_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,9 @@ def get_solver_rewards(
log.info("Setting tcp_keepalives_idle to 900 for prod connection")
self.connections[0].execute(text("SET tcp_keepalives_idle = 900;"))
log.info("Running prod query for first connection (in get_solver_rewards)")
try:
results.append(
self.exec_query(query=batch_reward_query_prod, engine=self.connections[0])
)
except Exception as e:
log.info("Query execution failed, re-throwing error")
raise e
results.append(
self.exec_query(query=batch_reward_query_prod, engine=self.connections[0])
)
for engine in self.connections[1:]:
log.info("Running barn query on other connections (in get_solver_rewards")
results.append(
Expand Down

0 comments on commit 2fb2fcd

Please sign in to comment.