My Python web API (https://tools.wmflabs.org/phabricator-bug-status/queryTasks) [stopped working](https://en.wikipedia.org/wiki/MediaWiki_talk:Gadget-BugStatusUpdate.js#Not_working) for unclear reasons.
When I try:
```
tools.phabricator-bug-status@tools-trusty:~$ webservice2 uwsgi-python restart
```
I get:
```
Traceback (most recent call last):
File "/usr/local/bin/webservice2", line 150, in <module>
job_id = get_job_id(queue_name, job_name)
File "/usr/local/bin/webservice2", line 103, in get_job_id
return xpath_string(output, './/JB_job_number')
File "/usr/local/bin/webservice2", line 85, in xpath_string
xml = ET.fromstring(string)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1300, in XML
parser.feed(text)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 97, column 16
```
It looks like ET.fromstring is failing in /usr/local/bin/webservice2, probably because qstat_xml is not returning valid XML.