ignore errors for cleaning up tmpdir

This commit is contained in:
leminlimez
2025-03-31 09:32:28 -04:00
parent a9c96d4157
commit 198c4d8f58

View File

@@ -423,7 +423,11 @@ class DeviceManager:
update_label("Restoring to device...") update_label("Restoring to device...")
restore_files(files=files_to_restore, reboot=self.auto_reboot, lockdown_client=self.data_singleton.current_device.ld) restore_files(files=files_to_restore, reboot=self.auto_reboot, lockdown_client=self.data_singleton.current_device.ld)
if tmp_pb_dir != None: 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." msg = "Your device will now restart."
if not self.auto_reboot: if not self.auto_reboot:
msg = "Please restart your device to see changes." msg = "Please restart your device to see changes."
@@ -431,7 +435,11 @@ class DeviceManager:
update_label("Success!") update_label("Success!")
except Exception as e: except Exception as e:
if tmp_pb_dir != None: 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) show_apply_error(e, update_label)
## RESETTING MOBILE GESTALT ## RESETTING MOBILE GESTALT