mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
ignore errors for cleaning up tmpdir
This commit is contained in:
@@ -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:
|
||||
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:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user