Remove debug prints

This commit is contained in:
Wasi Master
2024-08-14 15:44:06 +06:00
parent ffefe1193b
commit cbb1e8568d
+2 -4
View File
@@ -58,19 +58,17 @@ def show_article():
return bypass_paywall(link) return bypass_paywall(link)
except requests.exceptions.RequestException as e: except requests.exceptions.RequestException as e:
return str(e), 400 return str(e), 400
except e: except Exception as exc:
raise e raise exc
@app.route("/", defaults={"path": ""}) @app.route("/", defaults={"path": ""})
@app.route("/<path:path>", methods=["GET"]) @app.route("/<path:path>", methods=["GET"])
def get_article(path): def get_article(path):
print(path)
full_url = request.url full_url = request.url
parts = full_url.split("/", 4) parts = full_url.split("/", 4)
if len(parts) >= 5: if len(parts) >= 5:
actual_url = "https://" + parts[4].lstrip("/") actual_url = "https://" + parts[4].lstrip("/")
print(actual_url)
try: try:
return bypass_paywall(actual_url) return bypass_paywall(actual_url)
except requests.exceptions.RequestException as e: except requests.exceptions.RequestException as e: