Skip to content

Commit a636760

Browse files
authored
Merge pull request #167 from kastaid/dev
update
2 parents badb571 + 2be850f commit a636760

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

getter/__main__.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,11 @@ async def main() -> None:
100100
try:
101101
getter_app.run_in_loop(main())
102102
getter_app.run()
103-
except (
104-
KeyboardInterrupt,
105-
SystemExit,
106-
):
107-
pass
103+
except (KeyboardInterrupt, SystemExit):
104+
LOG.warning("[MAIN] - Manual stop signal received.")
105+
sys.exit(0)
108106
except Exception as err:
109107
LOG.exception(f"[MAIN_ERROR]: {err}")
108+
sys.exit(1)
110109
finally:
111-
LOG.warning("[MAIN] - Getter Stopped...")
112-
sys.exit(0)
110+
LOG.warning("[MAIN] - Stopped...")

0 commit comments

Comments
 (0)