Skip to content

Commit 1480bca

Browse files
committed
Fix UnboundLocalError in private.py by using list's preferred language as fallback
1 parent 44971dd commit 1480bca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Mailman/Cgi/private.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ def main():
240240
'realname': mlist.real_name,
241241
'message': message
242242
}
243-
output = mlist.ParseTags('private.html', replacements, lang)
243+
# Use list's preferred language as fallback before authentication
244+
output = mlist.ParseTags('private.html', replacements, mlist.preferred_language)
244245
print(output)
245246
return
246247

0 commit comments

Comments
 (0)