This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gruszczy
Recipients alexis, eric.araujo, gruszczy, tarek
Date 2011-06-17.20:13:31
SpamBayes Score 0.0019355203
Marked as misclassified No
Message-id <1308341612.08.0.583643190206.issue12355@psf.upfronthosting.co.za>
In-reply-to
Content
When looking at issue #12348 I have noticed following behaviour:

from packaging.pypi.simple import Crawler
c = Crawler()
c.get_releases('webob')

Traceback (most recent call last):
  File "test_crawl.py", line 3, in <module>
    c.get_releases('webob')
  File "/home/gruszczy/Projects/python/Lib/packaging/pypi/simple.py", line 192, in get_releases
    raise ProjectNotFound
packaging.pypi.errors.ProjectNotFound

This is because when request for /simple/webob/ is made 301 is returned to /simple/WebOb/ and HttpError raised, which is silenced and returned:

        except urllib.error.HTTPError as v:
            return v

Wouldn't it be good to do something about? How about crawler following redirects?
History
Date User Action Args
2011-06-17 20:13:32gruszczysetrecipients: + gruszczy, tarek, eric.araujo, alexis
2011-06-17 20:13:32gruszczysetmessageid: <1308341612.08.0.583643190206.issue12355@psf.upfronthosting.co.za>
2011-06-17 20:13:31gruszczylinkissue12355 messages
2011-06-17 20:13:31gruszczycreate