Skip to content

Commit

Permalink
Bugfix: allow nothing to be given in --labels (#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 <tito.dalcanton@ijclab.in2p3.fr>

---------

Co-authored-by: Tito Dal Canton <tito.dalcanton@ijclab.in2p3.fr>
  • Loading branch information
2 people authored and spxiwh committed May 28, 2024
1 parent ee2484b commit a898df5
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 a898df5

Please sign in to comment.