# Pastebin UsmPgI3f 2023-02-13 13:32:56,391 listenbrainz.webserver ERROR Exception on /1/playlist/e88845c0-c820-4f9f-a432-3f9e3555fc0d/xspf [GET] Traceback (most recent call last): File "/usr/local/lib/python3.11/xml/etree/ElementTree.py", line 1028, in _escape_cdata if "&" in text: ^^^^^^^^^^^ TypeError: argument of type 'bool' is not iterable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 2073, in wsgi_app response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1519, in full_dispatch_request rv = self.handle_user_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1517, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1503, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/code/listenbrainz/listenbrainz/webserver/decorators.py", line 18, in decorator resp = make_response(f(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/brainzutils/ratelimit.py", line 262, in rate_limited return f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/code/listenbrainz/listenbrainz/webserver/decorators.py", line 42, in decorator return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/code/listenbrainz/listenbrainz/webserver/views/playlist_api.py", line 602, in get_playlist_xspf return serialize_xspf(playlist) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/code/listenbrainz/listenbrainz/webserver/views/playlist_api.py", line 260, in serialize_xspf return ET.tostring(playlist_root, encoding="unicode", method="xml") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/xml/etree/ElementTree.py", line 1098, in tostring ElementTree(element).write(stream, encoding, File "/usr/local/lib/python3.11/xml/etree/ElementTree.py", line 743, in write serialize(write, self._root, qnames, namespaces, File "/usr/local/lib/python3.11/xml/etree/ElementTree.py", line 906, in _serialize_xml _serialize_xml(write, e, qnames, None, File "/usr/local/lib/python3.11/xml/etree/ElementTree.py", line 906, in _serialize_xml _serialize_xml(write, e, qnames, None, File "/usr/local/lib/python3.11/xml/etree/ElementTree.py", line 904, in _serialize_xml write(_escape_cdata(text)) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/xml/etree/ElementTree.py", line 1036, in _escape_cdata _raise_serialization_error(text) File "/usr/local/lib/python3.11/xml/etree/ElementTree.py", line 1018, in _raise_serialization_error raise TypeError( TypeError: cannot serialize True (type bool)