From 43c327823e08cbd9bd48cd8cd0be5c306228c220 Mon Sep 17 00:00:00 2001 From: mt Date: Sat, 2 Nov 2019 21:45:55 +0100 Subject: [PATCH] Cleanup en fixes for live --- sorteerhoed/central_management.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sorteerhoed/central_management.py b/sorteerhoed/central_management.py index 9bcbc76..dfa062a 100644 --- a/sorteerhoed/central_management.py +++ b/sorteerhoed/central_management.py @@ -99,7 +99,7 @@ class CentralManagement(): # # -# self.eventQueue.put(Signal('start', {'ding':'test'})) + self.eventQueue.put(Signal('start', {'ding':'test'})) while self.isRunning.is_set(): time.sleep(.5) @@ -229,7 +229,7 @@ class CentralManagement(): else: self.logger.warning('DO NOT update status') elif signal.name == 'plotter.finished': - if self.currentHit.submit_page_at: + if self.currentHit and self.currentHit.submit_page_at: self.setLight(False) scan = threading.Thread(target=self.scanImage, name='scan') scan.start()