Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: unsupported operand type(s) for +: 'frozenset' and 'list' #2056

Closed
tombakas opened this issue Mar 11, 2023 · 2 comments
Closed

TypeError: unsupported operand type(s) for +: 'frozenset' and 'list' #2056

tombakas opened this issue Mar 11, 2023 · 2 comments

Comments

@tombakas
Copy link

tombakas commented Mar 11, 2023

Version 6.0.0 of mozilla/bleach converts ALLOWED_PROTOCOLS to a frozen set. Therefore, the concatenation of ALLOWED_PROTOCOLS with ["tel"] causes a TypeError.

This can either be fixed by pinning the version to <6.0.0 or converting ALLOWED_PROTOCOLS to a list. Any preference? I can create a PR for this.

@tombakas
Copy link
Author

Just realized this was already filed.

@molokov
Copy link
Contributor

molokov commented Apr 10, 2023

See #2054

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants