mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-18 22:40:19 +01:00
Corrected parsing of _house_arrest_get_result()
This commit is contained in:
parent
cc3b349705
commit
40eacd40da
1 changed files with 2 additions and 2 deletions
|
|
@ -1174,10 +1174,10 @@ def _house_arrest_get_result(self):
|
|||
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…
Reference in a new issue