Skip to content

Deleted project causes error #36

Description

@ejratl

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions