Skip to content

Commit

Permalink
Merge pull request #49 from CHIMEFRB/33-bug-datatrail-ps-of-an-event-…
Browse files Browse the repository at this point in the history
…not-in-datatrail-gives-error-1

ps: Catch error when dataset doesn't exist in Datatrail
  • Loading branch information
tjzegmott authored Dec 6, 2023
2 parents 139d4ba + 09a9d13 commit 4cb28a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dtcli/ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ def ps(
logger.error(e)
return None

if files and ("error" in files.keys()):
error_console.print(files["error"])
return None

if show_files and files:
# Files table
file_table = create_files_table(dataset, scope, files)
Expand Down

0 comments on commit 4cb28a0

Please sign in to comment.