瀏覽代碼

*** empty log message ***

David Rose 25 年之前
父節點
當前提交
5d939e1e4d
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      direct/src/distributed/ClientDistUpdate.py

+ 2 - 1
direct/src/distributed/ClientDistUpdate.py

@@ -54,7 +54,8 @@ class ClientDistUpdate:
         # Get the arguments into a list
         args = self.extractArgs(di)
         # Apply the function to the object with the arguments
-        apply(self.func, [do] + args)
+        if self.func != None:
+            apply(self.func, [do] + args)
         return None
 
     def extractArgs(self, di):