🚸 PORT error shown
This commit is contained in:
parent
7dd3723114
commit
597bb051c0
|
@ -8,7 +8,8 @@ import os
|
||||||
|
|
||||||
try:
|
try:
|
||||||
port = int(os.environ.get("PORT", "8080"))
|
port = int(os.environ.get("PORT", "8080"))
|
||||||
except ValueError:
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
port = -1
|
port = -1
|
||||||
if not 1 <= port <= 65535:
|
if not 1 <= port <= 65535:
|
||||||
print(
|
print(
|
||||||
|
|
Loading…
Reference in New Issue