[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[snapshot/master] Fix copy/paste error



---
 web/app/snapshot/controllers/package.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/web/app/snapshot/controllers/package.py b/web/app/snapshot/controllers/package.py
index 2f511af..d029a7e 100644
--- a/web/app/snapshot/controllers/package.py
+++ b/web/app/snapshot/controllers/package.py
@@ -91,7 +91,7 @@ class PackageController(BaseController):
         # If the passed string is not ascii, then the package name
         # simply does not exist.
         try:
-            source.encode('ascii')
+            string.encode('ascii')
         except UnicodeEncodeError:
             abort(404, 'No such package')
 
-- 
1.7.2.3


Reply to: