diff --git a/devicemanagement/device_manager.py b/devicemanagement/device_manager.py index 50f0b79..4ead1b9 100644 --- a/devicemanagement/device_manager.py +++ b/devicemanagement/device_manager.py @@ -423,7 +423,11 @@ class DeviceManager: update_label("Restoring to device...") restore_files(files=files_to_restore, reboot=self.auto_reboot, lockdown_client=self.data_singleton.current_device.ld) if tmp_pb_dir != None: - tmp_pb_dir.cleanup() + try: + tmp_pb_dir.cleanup() + except Exception as e: + # ignore clean up errors + print(str(e)) msg = "Your device will now restart." if not self.auto_reboot: msg = "Please restart your device to see changes." @@ -431,7 +435,11 @@ class DeviceManager: update_label("Success!") except Exception as e: if tmp_pb_dir != None: - tmp_pb_dir.cleanup() + try: + tmp_pb_dir.cleanup() + except Exception as e: + # ignore clean up errors + print(str(e)) show_apply_error(e, update_label) ## RESETTING MOBILE GESTALT