mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Corrected parsing of _house_arrest_get_result()
This commit is contained in:
parent
cc3b349705
commit
40eacd40da
@ -1174,10 +1174,10 @@ class libiMobileDevice():
|
||||
self.plist_lib.plist_free(plist)
|
||||
|
||||
# To determine success, we need to inspect the returned plist
|
||||
if hasattr(result, 'Status'):
|
||||
if 'Status' in result:
|
||||
if self.verbose:
|
||||
self.log(" STATUS: %s" % result['Status'])
|
||||
elif hasattr(result, 'Error'):
|
||||
elif 'Error' in result:
|
||||
if self.verbose:
|
||||
self.log(" ERROR: %s" % result['Error'])
|
||||
raise libiMobileDeviceException(result['Error'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user