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 UPDATE events
SET error = %s SET error = %s
WHERE id = %s AND state = 'EDITED' AND error IS NULL WHERE id = %s AND state = 'EDITED' AND error IS NULL
""", id=candidate.id, error=error) """, candidate.id, error)
except Exception: except Exception:
self.logger.exception("Failed to set error for candidate {}, ignoring".format(format_job(candidate))) self.logger.exception("Failed to set error for candidate {}, ignoring".format(format_job(candidate)))
self.refresh_conn() self.refresh_conn()

Loading…
Cancel
Save