diff --git a/lib/rpc_table.py b/lib/rpc_table.py index b95f850..d08d465 100644 --- a/lib/rpc_table.py +++ b/lib/rpc_table.py @@ -41,4 +41,5 @@ func_table = [ [ "object", [] ], [ "object", ["int"] ], [ "object", ["string"] ], + [ "object", ["string", "string"] ], ] diff --git a/pysearpc/client.py b/pysearpc/client.py index b5ac296..bab8324 100644 --- a/pysearpc/client.py +++ b/pysearpc/client.py @@ -81,7 +81,7 @@ def searpc_func(ret_type, param_types): try: return fret(ret_str) except fcallfret.error, e: - raise SearpcError(e) + raise SearpcError(str(e)) def newfunc_obj(self, *args): fcall_str = fcall(func.__name__, *args)