Skip to content

Commit

Permalink
Better errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee committed Apr 23, 2024
1 parent 689e67a commit c6446bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/panoptes/pocs/utils/cli/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def handleEvent(event):
return

if verbose:
print(event)
print(f'{event=}')

try:
record = from_json(Path(event.src_path).read_text())
Expand All @@ -133,7 +133,7 @@ def handleEvent(event):
if verbose:
print(f'Added data to firestore with {doc_id=} at {doc_ts}')
except Exception as e:
print(f'{e}')
print(f'Exception {e!r}')

event_handler.on_modified = handleEvent
file_observer = Observer()
Expand Down

0 comments on commit c6446bc

Please sign in to comment.