🚸 PORT error shown

This commit is contained in:
Rayan fernandes 2021-06-11 23:33:57 +05:30
parent 7dd3723114
commit 597bb051c0
1 changed files with 2 additions and 1 deletions

View File

@ -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(