From c5d3e4005d9ac9078bf12bede7976d2ad4716fa9 Mon Sep 17 00:00:00 2001 From: "Adam.Dybbroe" Date: Tue, 3 Dec 2024 11:21:47 +0100 Subject: [PATCH] Remove __main__ from module. It uses the run part for the script Signed-off-by: Adam.Dybbroe --- trollsched/shapefiles_from_schedule.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/trollsched/shapefiles_from_schedule.py b/trollsched/shapefiles_from_schedule.py index 9613afc..d8b028d 100644 --- a/trollsched/shapefiles_from_schedule.py +++ b/trollsched/shapefiles_from_schedule.py @@ -155,11 +155,3 @@ def run(args=None): satellites, tle_filename, outdir) - - -if __name__ == "__main__": - try: - run() - except Exception: - logger.exception("Something wrong happened!") - raise