From 10b3a75ee13c4b2651384a5ff203e8c0a403d6a1 Mon Sep 17 00:00:00 2001 From: Karamaz0V1 Date: Fri, 27 Jul 2018 17:06:22 +0200 Subject: [PATCH] Critical catch --- supervisor.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/supervisor.py b/supervisor.py index aa2f227..3c243a6 100644 --- a/supervisor.py +++ b/supervisor.py @@ -224,11 +224,19 @@ def watch_folder(): def main(): while(True): - queue = update_queue() + try: + queue = update_queue() + except Exception: + print('ERROR: while updating work queue. Resuming.') + continue if not queue: watch_folder() continue - run(queue.pop()['expe_file']) + try: + run(queue.pop()['expe_file']) + except Exception: + print('ERROR: while running test. Resuming.') + continue if __name__ == '__main__': main() \ No newline at end of file