---
snake-server | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/snake-server b/snake-server
index 65f9d82..4a1bb93 100755
--- a/snake-server
+++ b/snake-server
@@ -100,6 +100,11 @@ def setup_option_parser():
help="Disable zeroconf service advertisment")
return parser
+# FIXME - it would be nice to capture exceptions and pass them back to the
+# client like kojihub does. However, SimpleXMLRPCServer intercepts exceptions
+# in do_POST and sends back a generic error code - 500: ('Internal Server
+# Error', 'Server got itself in trouble'). For suggestions/tips on ways
around
+# this, see kojixmlrpc.py
class SnakeXMLRPCServer(DocXMLRPCServer):
def _dispatch(self, method, params):
'''overload built-in method to catch and log exceptions to the
snake.log'''
--
1.5.4.5