make sure port default works
This commit is contained in:
parent
7aa6e1a170
commit
a595116a3c
1 changed files with 4 additions and 2 deletions
|
@ -370,8 +370,10 @@ class MinecraftCollector(object):
|
|||
yield metric
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
HTTP_PORT = int(os.environ.get('HTTP_PORT'))
|
||||
if HTTP_PORT == None:
|
||||
except:
|
||||
HTTP_PORT = 8000
|
||||
|
||||
start_http_server(HTTP_PORT)
|
||||
|
|
Loading…
Reference in a new issue