[Pypi-checkins] r851 - trunk/pypi

richard python-checkins at python.org
Wed Aug 11 03:25:38 CEST 2010


Author: richard
Date: Wed Aug 11 03:25:38 2010
New Revision: 851

Modified:
   trunk/pypi/webui.py
Log:
handle bogus crap passed by users

Modified: trunk/pypi/webui.py
==============================================================================
--- trunk/pypi/webui.py	(original)
+++ trunk/pypi/webui.py	Wed Aug 11 03:25:38 2010
@@ -993,7 +993,10 @@
                     version = l[-1][1]
                 except IndexError:
                     raise NotFound, 'no releases'
-        return self.store.get_package(name, version), name, version
+        info = self.store.get_package(name, version)
+        if not info:
+            raise NotFound
+        return info, name, version
 
     def doap(self, name=None, version=None):
         '''Return DOAP rendering of a package.


More information about the Pypi-checkins mailing list