Преглед на файлове

Put try around handle command string

Mark Mine преди 23 години
родител
ревизия
4feedb0592
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      direct/src/cluster/ClusterServer.py

+ 4 - 1
direct/src/cluster/ClusterServer.py

@@ -201,5 +201,8 @@ class ClusterServer(DirectObject.DirectObject):
     def handleCommandString(self, dgi):
         """ Handle arbitrary command string from client """
         command = self.msgHandler.parseCommandStringDatagram(dgi)
-        exec( command, globals() )
+        try:
+            exec( command, globals() )
+        except:
+            pass