From 24f0c0f7451b7ca90727a369874740da2f3a1d64 Mon Sep 17 00:00:00 2001 From: Inferencebot Date: Wed, 14 Oct 2026 10:55:30 -0600 Subject: [PATCH] fix: import urllib.parse on the retire path (NameError broke the sweep) --- app/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main.py b/app/main.py index 5be4e12..d28a1c1 100644 --- a/app/main.py +++ b/app/main.py @@ -978,6 +978,7 @@ async def sync_matrix_space() -> dict: # accept-able from a lingering client notification, which defeats # the one-identity rule. Revoke invites via state-event membership # (kick 403s on invite-state users). + import urllib.parse # local import: only needed on this retire path for room in [MATRIX_SPACE_ID] + ([MATRIX_GENERAL_ROOM] if MATRIX_GENERAL_ROOM else []): enc_room = urllib.parse.quote(room, safe="") if local_mxid in joined: