Ejemplo n.º 1
0
 def prepare_devices(self):
     try:
         self.scanner_service.set_camera_config()
         self.scanner_service.prepare_cams()
     except:
         print("Unexpected error:", sys.exc_info()[0])
         log = Log()
         log.log_error('Error in the method set_new_project_config')
         return {'status': -1}
     return {'status': 1}
Ejemplo n.º 2
0
 def prepare_devices(self):
     try:
         self.scanner_service.set_camera_config()
         self.scanner_service.prepare_cams()
     except:
         print("Unexpected error:", sys.exc_info()[0])
         log = Log()
         log.log_error('Error in the method set_new_project_config')
         return {'status': -1}
     return {'status': 1}