Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleted project causes error #36

Open
ejratl opened this issue Apr 12, 2016 · 0 comments
Open

Deleted project causes error #36

ejratl opened this issue Apr 12, 2016 · 0 comments
Labels

Comments

@ejratl
Copy link
Contributor

ejratl commented Apr 12, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant