From ee225d5f0d3f03288cfa7f54484581dabb0d8be6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 25 Oct 2014 17:25:17 +0800 Subject: [PATCH] pc_rpc: raise RemoteError on non-existing method RPC attempt --- artiq/management/pc_rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/management/pc_rpc.py b/artiq/management/pc_rpc.py index dcb4ccdc7..24b92420c 100644 --- a/artiq/management/pc_rpc.py +++ b/artiq/management/pc_rpc.py @@ -77,8 +77,8 @@ class Server: obj = pyon.decode(line.decode()) action = obj["action"] if action == "call": - method = getattr(self.target, obj["name"]) try: + method = getattr(self.target, obj["name"]) ret = method(*obj["args"], **obj["kwargs"]) obj = {"result": "ok", "ret": ret} except Exception as e: