Browse Source

Should work without triggering a NotificationException

atexit
Raphael Roberts 6 years ago
parent
commit
96193464f3
  1. 3
      ctabus/__init__.py

3
ctabus/__init__.py

@ -162,7 +162,6 @@ class Table:
class CTABUSNotifictaionManager(NotificationManager):
def on_done(self):
EXIT.set()
quit(0)
def gen_list(objs, data, *displays, key=None, sort=0, num_pic=True):
@ -305,6 +304,8 @@ def _main_periodic(args, stop_id, init_data):
print("Error fetching times")
if e < args.periodic:
EXIT.wait(args.periodic - e)
if EXIT.is_set():
quit(0)
except KeyboardInterrupt:
_done = True

Loading…
Cancel
Save