Explorar o código

Merge pull request #95 from hymzhek/patch-1

Update GetConfig.py
J_hao104 %!s(int64=8) %!d(string=hai) anos
pai
achega
70ef91f85c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()