AmpelAstro / Ampel-nuclear

Ampel units to analyze nuclear events (e.g. searching for Tidal Disruption Events)
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

if the init fails #2

Open sjoertvv opened 2 years ago

sjoertvv commented 2 years ago

https://github.com/AmpelProject/Ampel-nuclear/blob/cef592dff6f090628518a1d207a95d7dd6215c82/run_tde_test.py#L88

In my first attempt at

./run_tde_test.py -i

failed because I was using my Ampel API token (and not the archive token). This line the first one that breaks, but the error thrown here make clear it's simply and authorization issue. Shall I add a check for unauthorized in the output from response = requests.post()?

simeonreusch commented 2 years ago

hi Sjoert, yeah, that would be great!