Explorar o código

[update] db port must be int

jhao104 %!s(int64=9) %!d(string=hai) anos
pai
achega
8746ae2b57
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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__':