Skip to content

Commit

Permalink
Bugfix: allow nothing to be given in --labels (gwastro#4681)
Browse files Browse the repository at this point in the history
* Bugfix: allow nothing to be given in --labels

* Update bin/all_sky_search/pycbc_upload_single_event_to_gracedb

Co-authored-by: Tito Dal Canton <[email protected]>

---------

Co-authored-by: Tito Dal Canton <[email protected]>
  • Loading branch information
GarethCabournDavies and titodalcanton authored Apr 4, 2024
1 parent 684ea17 commit ae50126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/all_sky_search/pycbc_upload_single_event_to_gracedb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ if args.production_server:
else:
gracedb = GraceDb(service_url='https://gracedb-playground.ligo.org/api/')

labels = [l.upper() for l in args.labels]
labels = [l.upper() for l in (args.labels or [])]
allowed_labels = gracedb.allowed_labels

if set(labels) - set(allowed_labels):
Expand Down

0 comments on commit ae50126

Please sign in to comment.