From 712bb523924594786eceac11f0cf8c83d3e980f1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 18 Jun 2022 03:59:33 +0200 Subject: [PATCH] fix 500 error on /settings/gumroad --- files/routes/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/settings.py b/files/routes/settings.py index 979b3b41b..448889692 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -388,6 +388,7 @@ def gumroad(v): if len(response) == 0: return {"error": "Email not found"}, 404 + response = [x for x in response if x['variants_and_quantity']] response = response[0] tier = tiers[response["variants_and_quantity"]] if v.patron == tier: return {"error": f"{patron} rewards already claimed"}, 400