def on_pre_enter(self): try: errorlog.openLog(self.manager.mountPoint) self.cameraLabel.text = 'Searching for cameras...' if (odd.camera is None or even.camera is None or not odd.camera.is_connected() or not even.camera.is_connected()): self.cameraNext.disabled = True self.searchingLayout.opacity = 1.0 self.foundLayout.opacity = 0.0 else: self.cameraNext.disabled = False self.searchingLayout.opacity = 0.0 self.foundLayout.opacity = 1.0 except Exception as e: handleCrash(e)