浏览代码

fix for non-debug mode

Darren Ranalli 19 年之前
父节点
当前提交
7ebfa95b92
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      direct/src/distributed/ConnectionRepository.py

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

@@ -34,7 +34,8 @@ class ConnectionRepository(
 
         self.config = config
 
-        self.setVerbose(self.config.GetBool('verbose-repository', 0))
+        if hasattr(self, 'setVerbose'):
+            self.setVerbose(self.config.GetBool('verbose-repository', 0))
 
         # Set this to 'http' to establish a connection to the server
         # using the HTTPClient interface, which ultimately uses the