mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-08-01 21:07:44 +00:00
Fixed bug when return empty string
This commit is contained in:
parent
0f5664e138
commit
048f6fa80d
@ -31,9 +31,11 @@ def _fret_string(ret_str):
|
||||
|
||||
if dicts.has_key('err_code'):
|
||||
raise SearpcError(dicts['err_msg'])
|
||||
|
||||
if dicts['ret']:
|
||||
|
||||
if dicts.has_key('ret'):
|
||||
return dicts['ret']
|
||||
else:
|
||||
raise SearpcError('Invalid response format')
|
||||
|
||||
class _SearpcObj(object):
|
||||
'''A compact class to emulate gobject.GObject
|
||||
|
Loading…
Reference in New Issue
Block a user