Fix exiting

This commit is contained in:
TheTechRobo 2022-04-03 18:11:07 +00:00
parent b36ed20b84
commit 3a666e218c
1 changed files with 3 additions and 0 deletions

View File

@ -72,6 +72,7 @@ class PlaceScraper:
# probably one of the first few responses; skip
pass
if STOP:
STOPPED = True
break #, drop and roll
print("\tSTOP: Exited gracefully after CtrlC.")
client = PlaceScraper()
@ -82,3 +83,5 @@ while True:
print(f"Caught {ename}")
except KeyboardInterrupt:
STOP = True
if STOPPED:
sys.exit(2)