Skip to content

Commit 2f17fe1

Browse files
author
hymzhek
authored
Update GetConfig.py
Fixed TypeError: port must be an integer error
1 parent 0f03dd5 commit 2f17fe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Util/GetConfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def host_ip(self):
5555

5656
@LazyProperty
5757
def host_port(self):
58-
return self.config_file.get('HOST', 'port')
58+
return int(self.config_file.get('HOST', 'port'))
5959

6060
if __name__ == '__main__':
6161
gg = GetConfig()

0 commit comments

Comments
 (0)