cutter: Fix mistake in check_candidate error handling

pull/114/head
Mike Lang 5 years ago
parent ba53172cbc
commit b0a71fd9f1

@ -146,7 +146,7 @@ class Cutter(object):
UPDATE events
SET error = %s
WHERE id = %s AND state = 'EDITED' AND error IS NULL
""", id=candidate.id, error=error)
""", candidate.id, error)
except Exception:
self.logger.exception("Failed to set error for candidate {}, ignoring".format(format_job(candidate)))
self.refresh_conn()

Loading…
Cancel
Save