jhao104 9 лет назад
Родитель
Сommit
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__':