Permalink
Browse files

Use the normalized name to verify

  • Loading branch information...
1 parent b29556e commit f504397fe2b31c6cd72663038a2725a0d9f2422e @dstufft dstufft committed Jun 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 crate/pypi/processor.py
@@ -520,7 +520,7 @@ def verify_and_sync_pages(self):
logger.exception("Exception trying to verify %s" % self.name) # @@@ Figure out a better way to handle this
try:
- package = Package.objects.get(name=self.name)
+ package = Package.objects.get(normalized_name=re.sub('[^A-Za-z0-9.]+', '-', self.name).lower())
except Package.DoesNotExist:
logger.exception("Error Trying To Verify %s (Querying Package)" % self.name)
return

0 comments on commit f504397

Please sign in to comment.