don't display traceback if client does not send version number
authorThomasV <thomasv1@gmx.de>
Wed, 19 Feb 2014 12:06:55 +0000 (13:06 +0100)
committerThomasV <thomasv1@gmx.de>
Wed, 19 Feb 2014 12:06:55 +0000 (13:06 +0100)
processor.py

index cd7a66b..a1b0851 100644 (file)
@@ -151,8 +151,8 @@ class RequestDispatcher(threading.Thread):
         p.add_request(session, request)
 
         if method in ['server.version']:
-            session.version = params[0]
             try:
+                session.version = params[0]
                 session.protocol_version = float(params[1])
             except:
                 pass