From e2f8119bbb3522c62ee63ee26d5fedb8a94897df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20B=C3=BCchner?= Date: Thu, 18 Jul 2024 14:39:49 +0000 Subject: [PATCH] fix return --- ubottu/launchpad/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ubottu/launchpad/utils.py b/ubottu/launchpad/utils.py index 56d0f2f..b909634 100644 --- a/ubottu/launchpad/utils.py +++ b/ubottu/launchpad/utils.py @@ -33,6 +33,7 @@ def fetch_matrix_accounts(profile_id): matrix_ids.append(matrix_id) # Cache the result with expiration time of 30 minutes (1800 seconds) cache.setex(f"matrix_{profile_id}", 1800, json.dumps(matrix_ids)) + return matrix_ids except KeyError as e: print(f"Profule with name {profile_id} was not found. Error: {e}")