summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Component.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Component.py')
-rw-r--r--src/lib/Server/Component.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Server/Component.py b/src/lib/Server/Component.py
index 57d0e1d89..d24f6576f 100644
--- a/src/lib/Server/Component.py
+++ b/src/lib/Server/Component.py
@@ -142,6 +142,10 @@ class Component(SSL.SSLServer,
response = dumps(response, methodresponse=1)
except Fault, fault:
response = dumps(fault)
+ except TypeError, t:
+ syslog(LOG_ERR, "Client %s called function %s with wrong argument count" %
+ (address[0], method))
+ response = dumps(Fault(4, t.args[0]))
except:
(trace, val, trb) = exc_info()
syslog(LOG_ERR, "Unexpected failure in handler")