camera test
This commit is contained in:
parent
2264a28a3f
commit
b82a2ca785
12
src/main.py
12
src/main.py
@ -110,10 +110,14 @@ try:
|
||||
QApplication.processEvents()
|
||||
QThread.msleep(1000)
|
||||
QApplication.processEvents()
|
||||
if component_name == "vision":
|
||||
component.wait_completion(timeout=60)
|
||||
else:
|
||||
component.wait_completion()
|
||||
try:
|
||||
if component_name == "vision":
|
||||
component.wait_completion(timeout=60)
|
||||
else:
|
||||
component.wait_completion()
|
||||
except RuntimeError as e:
|
||||
logging.exception(traceback.format_exc())
|
||||
QMessageBox.critical(None, "Errore Banco", f"Non e stato inizializzare il componente {component_name}:\n\n{e}")
|
||||
except Exception as e:
|
||||
logging.exception(traceback.format_exc())
|
||||
QMessageBox.critical(None, "Errore Banco", f"Non e stato possibile connettersi al banco:\n\n{e}")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user