fix: import urllib.parse on the retire path (NameError broke the sweep)

This commit is contained in:
Inferencebot committed 2026-10-14 10:55:30 -06:00
1 parent b2689d9cd1
commit 24f0c0f745
1 file changed
+1
+1
View File
@@ -978,6 +978,7 @@ async def sync_matrix_space() -> dict:
# accept-able from a lingering client notification, which defeats # accept-able from a lingering client notification, which defeats
# the one-identity rule. Revoke invites via state-event membership # the one-identity rule. Revoke invites via state-event membership
# (kick 403s on invite-state users). # (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 []): for room in [MATRIX_SPACE_ID] + ([MATRIX_GENERAL_ROOM] if MATRIX_GENERAL_ROOM else []):
enc_room = urllib.parse.quote(room, safe="") enc_room = urllib.parse.quote(room, safe="")
if local_mxid in joined: if local_mxid in joined: