This commit is contained in:
Kovid Goyal 2013-06-12 06:59:00 +05:30
commit 37ba626af4

View File

@ -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'])