diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-25 18:28:24 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-05-25 18:28:24 +0100 |
commit | 8cf5c7204f0ebb787eafb9ffa04c9e61a8d6d3af (patch) | |
tree | 5ef4e040ed428a48319c325d93927508624c99c3 /app/tasks/importtasks.py | |
parent | f93394df753b7e2181f2a3eb3c1f3d45835ccc63 (diff) | |
download | cheatdb-8cf5c7204f0ebb787eafb9ffa04c9e61a8d6d3af.tar.xz |
Add package soft deletion
Diffstat (limited to 'app/tasks/importtasks.py')
-rw-r--r-- | app/tasks/importtasks.py | 2 |
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 |