Fix exiting
This commit is contained in:
parent
b36ed20b84
commit
3a666e218c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue