fix post update tasks for policy tasks
@@ -39,6 +39,7 @@ class Command(BaseCommand):
# convert autotask to the new format
for task in AutomatedTask.objects.all():
+ try:
edited = False
# convert scheduled task_type
@@ -65,3 +66,5 @@ class Command(BaseCommand):
if edited:
task.save()
+ except:
+ continue
