瀏覽代碼

[update] db port must be int

jhao104 9 年之前
父節點
當前提交
8746ae2b57
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Util/GetConfig.py

+ 1 - 1
Util/GetConfig.py

@@ -42,7 +42,7 @@ class GetConfig(object):
 
     @LazyProperty
     def db_port(self):
-        return self.config_file.get('DB', 'port')
+        return int(self.config_file.get('DB', 'port'))
 
 
 if __name__ == '__main__':