From cbb1e8568d821a53f620d7c05885bfce831cbed8 Mon Sep 17 00:00:00 2001 From: Wasi Master <63045920+wasi-master@users.noreply.github.com> Date: Wed, 14 Aug 2024 15:44:06 +0600 Subject: [PATCH] Remove debug prints --- app/index.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/index.py b/app/index.py index 57a1f8e..a9f7fae 100644 --- a/app/index.py +++ b/app/index.py @@ -58,19 +58,17 @@ def show_article(): return bypass_paywall(link) except requests.exceptions.RequestException as e: return str(e), 400 - except e: - raise e + except Exception as exc: + raise exc @app.route("/", defaults={"path": ""}) @app.route("/", methods=["GET"]) def get_article(path): - print(path) full_url = request.url parts = full_url.split("/", 4) if len(parts) >= 5: actual_url = "https://" + parts[4].lstrip("/") - print(actual_url) try: return bypass_paywall(actual_url) except requests.exceptions.RequestException as e: