fix return

This commit is contained in:
Nils Büchner 2024-07-18 14:39:49 +00:00
parent dcac0c28c9
commit e2f8119bbb

View file

@ -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}")