Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Take into account that existing_package can be None.

  • Loading branch information...
commit 313b38956017d2d36e31681917e5caf1cd14df60 1 parent 6328e19
Mark van Lent authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  whiskers/views.py
View
2  whiskers/views.py
@@ -45,7 +45,7 @@ def prepare_packages(session, packages):
else:
version = Version(package['version'])
- if not existing_package.count():
+ if not (existing_package and existing_package.count()):
package_item = Package(package['name'], version)
else:
package_item = existing_package.first()
Please sign in to comment.
Something went wrong with that request. Please try again.