From 597bb051c03d394c95c4913815b3aeec245df5b0 Mon Sep 17 00:00:00 2001 From: Rayan fernandes <37145078+Rayanfer32@users.noreply.github.com> Date: Fri, 11 Jun 2021 23:33:57 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20=20PORT=20error=20shown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index 67e9a76..a513e53 100644 --- a/app/config.py +++ b/app/config.py @@ -8,7 +8,8 @@ import os try: port = int(os.environ.get("PORT", "8080")) -except ValueError: +except Exception as e: + print(e) port = -1 if not 1 <= port <= 65535: print(