Cope with a response that's not a dictionary.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-12-22 11:34:13 +00:00
1 parent 5d0eb105b0
commit 4de19fce56
1 file changed
+1 -1
+1 -1
View File
@@ -106,7 +106,7 @@ class Session(xen.util.xmlrpclib2.ServerProxy):
def _parse_result(result):
if 'Status' not in result:
if type(result) != dict or 'Status' not in result:
raise xmlrpclib.Fault(500, 'Missing Status in response from server')
if result['Status'] == 'Success':
if 'Value' in result:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.