summaryrefslogtreecommitdiff
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
parentbc54c1ebd5b7a7f4b80ebff6636098d0d63e959c (diff)
downloadapigrabber-f140744e626ca9b1af8097f43cc67201dcce59d1.tar.gz
apigrabber-f140744e626ca9b1af8097f43cc67201dcce59d1.zip
do not rollback after API 404
-rw-r--r--api.py3
m---------joblib0
2 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():
diff --git a/joblib b/joblib
-Subproject 7fa00a9e4f2723f7d93fc1ecc8369ccbbc9e4f7
+Subproject 535a14f4ea1973eaabcaf4624604a42335b1598