census icon indicating copy to clipboard operation
census copied to clipboard

Deleted project causes error

Open ejratl opened this issue 8 years ago • 0 comments

The zlib project was apparently deleted on OpenHub. The cache file reports it as a deleted project. The OpenHub deleted project page doesn't parse cleanly resulting in a Traceback as follows: Traceback (most recent call last): File "./oss_package_analysis.py", line 444, in main() File "./oss_package_analysis.py", line 406, in main project_data['comment_on_priority']) File "./oss_package_analysis.py", line 202, in init self.get_openhub_data(openhub_lookup_name) File "./oss_package_analysis.py", line 243, in get_openhub_data tree = ET.parse(filename) File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse tree.parse(source, parser) File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse parser.feed(data) 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: mismatched tag: line 20, column 2

It would be nice if the program were to catch this exception. For now, I am removing the OpenHub label for zlib from the projects_to_examine file along with some other clean-ups and will submit a pull request with that updated version.

zlib.txt

ejratl avatar Apr 12 '16 16:04 ejratl