Fix the GraceDb upload functionality of PAstroAlertConsumer
When processing alerts with the PAstroConsumer
from a IGWNAlert topic, the process_alert
method would fail when attempting to upload.
This PR fixes #14 (closed).
Changes
- Fixes the GraceDb setup method with correct indentation as previous logic was not reachable.
- Only attempt to connect to GraceDB with the GraceDB client if
upload_gracedb=True
. - Update share script to enable a
--upload-gracedb
flag - Edit log message for payload saving code.
Tests
I have run a test on CIT with my credentials and the issue is resolved.
Edited by Daniel Tang