Skip to content

Commit

Permalink
don't fail silently
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhong5297 committed Feb 4, 2024
1 parent a59916e commit 5bd047e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions scripts/upload_to_dune.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@
continue
file_name = file.split(".")[0].lower().replace(' ', '_')
with open(os.path.join(uploads_path, file), 'r') as file:
try:
table = dune.upload_csv(
data=str(file.read()),
table_name=file_name,
is_private=False
)
print(f'uploaded table "{file_name}"')
except Exception as e:
print(e)
table = dune.upload_csv(
data=str(file.read()),
table_name=file_name,
is_private=False
)
print(f'uploaded table "{file_name}"')

0 comments on commit 5bd047e

Please sign in to comment.