Просмотр исходного кода

Update GetConfig.py

Fixed TypeError: port must be an integer error
hymzhek 8 лет назад
Родитель
Сommit
2f17fe1986
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Util/GetConfig.py

+ 1 - 1
Util/GetConfig.py

@@ -55,7 +55,7 @@ class GetConfig(object):
 
     @LazyProperty
     def host_port(self):
-        return self.config_file.get('HOST', 'port')
+        return int(self.config_file.get('HOST', 'port'))
 
 if __name__ == '__main__':
     gg = GetConfig()