aboutsummaryrefslogtreecommitdiff
path: root/app/tasks/importtasks.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-25 18:28:24 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-25 18:28:24 +0100
commit8cf5c7204f0ebb787eafb9ffa04c9e61a8d6d3af (patch)
tree5ef4e040ed428a48319c325d93927508624c99c3 /app/tasks/importtasks.py
parentf93394df753b7e2181f2a3eb3c1f3d45835ccc63 (diff)
downloadcheatdb-8cf5c7204f0ebb787eafb9ffa04c9e61a8d6d3af.tar.xz
Add package soft deletion
Diffstat (limited to 'app/tasks/importtasks.py')
-rw-r--r--app/tasks/importtasks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py
index 352736e..a20bbee 100644
--- a/app/tasks/importtasks.py
+++ b/app/tasks/importtasks.py
@@ -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