From 9e93de4d6ba7b2f12ba58a2a4a6aa3c19ab314ed Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 2 Jan 2021 10:18:43 +0100 Subject: [PATCH] Simplify requests check --- update_unstable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_unstable.py b/update_unstable.py index 102c78f..0e887fe 100755 --- a/update_unstable.py +++ b/update_unstable.py @@ -62,7 +62,7 @@ def project_exists(project: str) -> bool: project_name = urlencode(project) request = requests.get(API_URL + project_name) - if request.status_code == requests.status_codes.codes.ok: + if request: return True return False