Add package soft deletion

This commit is contained in:
rubenwardy
2018-05-25 18:28:24 +01:00
parent f93394df75
commit 8cf5c7204f
12 changed files with 120 additions and 16 deletions

View File

@@ -231,7 +231,7 @@ def makeVCSRelease(id, branch):
@celery.task()
def importRepoScreenshot(id):
package = Package.query.get(id)
if package is None:
if package is None or package.soft_deleted:
raise Exception("Unexpected none package")
# Get URL Maker