فهرست منبع

Update GetConfig.py

Fixed TypeError: port must be an integer error
hymzhek 8 سال پیش
والد
کامیت
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()