소스 검색

Merge pull request #95 from hymzhek/patch-1

Update GetConfig.py
J_hao104 8 년 전
부모
커밋
70ef91f85c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Util/GetConfig.py

+ 1 - 1
Util/GetConfig.py

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