Skip to content

Commit

Permalink
Merge pull request #504 from m1stadev/master
Browse files Browse the repository at this point in the history
Don't fail restores if booting RestoreSEP fails
  • Loading branch information
doronz88 authored Aug 2, 2023
2 parents 98c2831 + 9dd45fa commit e7fc6bb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pymobiledevice3/restore/recovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,11 @@ def enter_restore(self):
self.send_component_and_command('RestoreDeviceTree', 'devicetree')

if self.build_identity.has_component('RestoreSEP'):
# send rsepfirmware and load it
self.send_component_and_command('RestoreSEP', 'rsepfirmware')
# attempt to send rsepfirmware and load it, otherwise continue
try:
self.send_component_and_command('RestoreSEP', 'rsepfirmware')
except USBError:
pass

self.send_kernelcache()

Expand Down

0 comments on commit e7fc6bb

Please sign in to comment.