diff --git a/scripts/cron.py b/scripts/cron.py index 9896bc3..cbcf675 100644 --- a/scripts/cron.py +++ b/scripts/cron.py @@ -155,7 +155,7 @@ async def yesterday_cron( # If something goes wrong in the COSEC step: except Exception as exception: err_printer(exception) - # if test_mode: raise + if test_mode: raise # Log out of TCAOFF: success = await tcaoff_client.logout() @@ -165,7 +165,7 @@ async def yesterday_cron( except Exception as exception: err_printer(exception) await tcaoff_client.logout() - # if test_mode: raise + if test_mode: raise # --------------------------------------------------------------------------------------------------------------------- @@ -253,13 +253,13 @@ async def today_cron( # If something goes wrong in the COSEC step: except Exception as exception: err_printer(exception) - # if test_mode: raise + if test_mode: raise # If something goes wrong: except Exception as exception: err_printer(exception) await tcaoff_client.logout() - # if test_mode: raise + if test_mode: raise # ---------------------------------------------------------------------------------------------------------------------