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()