in src/wagtail_localize_smartling/management/commands/sync_smartling.py [0:0]
def handle(self, *args, **kwargs) -> None:
project = Project.get_current()
for job_id in Job.objects.exclude(
project=project, status__in=FINAL_STATUSES
).values_list("pk", flat=True):
try:
sync_job(job_id)
except SyncJobException:
logger.exception("Error syncing job with ID %s", job_id)