Verified Commit d1f5167b authored by Ziirish's avatar Ziirish

check function return in order to determine whether the task succeeded or not

parent 458bf98e
Pipeline #1634 passed with stages
in 3 minutes and 45 seconds
......@@ -8,7 +8,6 @@ jQuery/Bootstrap
.. moduleauthor:: Ziirish <hi+burpui@ziirish.me>
"""
import sys
import os
from flask import current_app
......@@ -324,6 +323,8 @@ def delete_client(self, client, keepconf, delcert, revoke, template, delete, ser
self.update_state(state='STARTED', meta={'step': 'doing'})
ret = parser.remove_client(client, keepconf, delcert, revoke, template, delete)
if any(x == NOTIF_ERROR for x, _ in ret):
raise Exception
@celery.task(bind=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment