Skip to content

Commit

Permalink
lockdown: remove normal warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Oct 17, 2021
1 parent 09ee6c2 commit cd6c3da
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pymobiledevice3/lockdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,10 @@ def get_itunes_pairing_record(self):
with open(filename, 'rb') as f:
pair_record = plistlib.load(f)
except (PermissionError, FileNotFoundError):
logging.warning(f'No iTunes pairing record found for device {self.identifier}')
return None
return pair_record

def get_usbmux_pairing_record(self):
self.logger.warning('Getting pair record from usbmuxd')
client = usbmux.PlistProtocol(usbmux.MuxConnection.create_socket())
try:
return client.get_pair_record(self.udid)
Expand All @@ -159,7 +157,6 @@ def get_local_pairing_record(self):
if not path.exists():
self.logger.error(f'No pymobiledevice3 pairing record found for device {self.identifier}')
return None
self.logger.warning(f'Found pymobiledevice3 pairing record for device {self.udid}')
return plistlib.loads(path.read_bytes())

def validate_pairing(self):
Expand Down

0 comments on commit cd6c3da

Please sign in to comment.