From 6d3a4671cc127df69d6d356c8974bff194bd6f42 Mon Sep 17 00:00:00 2001 From: Lili Date: Sat, 10 Feb 2024 11:31:51 +0100 Subject: [PATCH] fix dictionary iteration in redeems --- tlapbot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tlapbot/__init__.py b/tlapbot/__init__.py index 46e3b3e..ea3c15c 100644 --- a/tlapbot/__init__.py +++ b/tlapbot/__init__.py @@ -37,7 +37,7 @@ def create_app(test_config=None): "Change your config to set 1-character prefix.") # Check for spaces in redeems (they won't work) - for redeem, _ in app.config['REDEEMS']: + for redeem in app.config['REDEEMS']: if ' ' in redeem: app.logger.warning(f"Redeem {redeem} has spaces in its name.") app.logger.warning("Redeems with spaces are impossible to redeem.")