fix: import urllib.parse on the retire path (NameError broke the sweep)
This commit is contained in:
1 parent
b2689d9cd1
commit
24f0c0f745
1 file changed
+1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user