1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-01 12:56:32 +00:00

Fix bug when dict value is 0

This commit is contained in:
xiez
2012-07-08 20:18:19 +08:00
parent f560675030
commit 0185c14831

View File

@@ -17,9 +17,11 @@ def _fret_int(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')
def _fret_string(ret_str):
try: