Skip to content

Commit

Permalink
-fix outputs queries (#207)
Browse files Browse the repository at this point in the history
small mistake prevents simulations from running when database is just
created
  • Loading branch information
nick-harder authored Sep 26, 2023
1 parent caabadb commit e913958
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assume/common/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,14 @@ async def on_stop(self):
for query in queries:
try:
df = pd.read_sql(query, self.db)
except OperationalError:
except (OperationalError, ProgrammingError):
continue

dfs.append(df)

if not dfs:
return

df = pd.concat(dfs)
df.reset_index()
df["simulation"] = self.simulation_id
Expand Down

0 comments on commit e913958

Please sign in to comment.