summaryrefslogtreecommitdiff
path: root/api.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-09 18:49:06 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-09 18:49:06 +0100
commitf140744e626ca9b1af8097f43cc67201dcce59d1 (patch)
treef4ea2c4a2a8d97b6d5035d695d58b7fadecb7348 /api.py
parentbc54c1ebd5b7a7f4b80ebff6636098d0d63e959c (diff)
downloadapigrabber-f140744e626ca9b1af8097f43cc67201dcce59d1.tar.gz
apigrabber-f140744e626ca9b1af8097f43cc67201dcce59d1.zip
do not rollback after API 404
Diffstat (limited to 'api.py')
-rw-r--r--api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/api.py b/api.py
index 19ea541..1d7e863 100644
--- a/api.py
+++ b/api.py
@@ -66,7 +66,8 @@ class Apigrabber(joblib.worker.Worker):
except crawler.ApiError as error:
logging.warning("%s: API returned error '%s'",
jobid, error.args[0])
- raise joblib.worker.JobFailed(error.args[0])
+ raise joblib.worker.JobFailed(error.args[0],
+ False) # not critical
async def startup():