Compare commits
1 commit
master
...
surdaft-ma
Author | SHA1 | Date | |
---|---|---|---|
|
a595116a3c |
1 changed files with 4 additions and 2 deletions
|
@ -370,8 +370,10 @@ class MinecraftCollector(object):
|
||||||
yield metric
|
yield metric
|
||||||
|
|
||||||
|
|
||||||
HTTP_PORT = int(os.environ.get('HTTP_PORT'))
|
if __name__ == '__main__':
|
||||||
if HTTP_PORT == None:
|
try:
|
||||||
|
HTTP_PORT = int(os.environ.get('HTTP_PORT'))
|
||||||
|
except:
|
||||||
HTTP_PORT = 8000
|
HTTP_PORT = 8000
|
||||||
|
|
||||||
start_http_server(HTTP_PORT)
|
start_http_server(HTTP_PORT)
|
||||||
|
|
Loading…
Reference in a new issue