Traceback (most recent call last):

 "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 730, in _real_extract
doc = parse_xml(webpage)

 "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 1515, in parse_xml
tree = xml.etree.ElementTree.XML(s.encode('utf-8'), **kwargs)

 "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1300, in XML
parser.feed(text)

 "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)

 "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise errParseError: not well-formed (invalid token): line 2, column 63
Traceback (most recent call last):

 "/home/<my_user>/.local/lib/python3.4/site-packages/pgcli/main.py", line 104, in cli
res = pgexecute.run(document.text)

 "/home/<my_user>/.local/lib/python3.4/site-packages/pgcli/pgexecute.py", line 91, in run
_logger.debug('Failed to switch. DB missing: %r', dbname)UnboundLocalError: local variable 'dbname' referenced before assignment