]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Update tasks.py
authorshamoon <4887959+shamoon@users.noreply.github.com>
Fri, 14 Feb 2025 04:01:29 +0000 (20:01 -0800)
committershamoon <4887959+shamoon@users.noreply.github.com>
Mon, 17 Feb 2025 16:19:11 +0000 (08:19 -0800)
src/documents/tasks.py

index 8b13ce92572ecdc71a99c0da16bdc59e609b531b..a798e33262380fb2d8588631df4a6e1f8dc3a9be 100644 (file)
@@ -128,7 +128,7 @@ def train_classifier(*, scheduled=True):
 
     except Exception as e:
         logger.warning("Classifier error: " + str(e))
-        task.status = states.FAILED
+        task.status = states.FAILURE
         task.result = str(e)