Lichess4545/heltour

interpret lichess reply to sending dms correctly

Open

#698 opened on Jul 2, 2025

 (0 comments) (0 reactions) (1 assignee)Python (12 forks)auto 404
P3 - lowbuggood first issue

Repository metrics

Stars
 (5 stars)
PR merge metrics
 (PR metrics pending)

Description

in this line: https://github.com/Lichess4545/heltour/blob/91ce688af08eb5f0d1cb9f2ad92bb0e19e0f2795/heltour/tournament/lichessapi.py#L127-L128 we check whether the lichess reply is "ok". however, the actual lichess reply for a successful message is not simply "ok", but the json '{"ok": true}'. this leads to a lot of error messages Error sending mail: {"ok":true} in our log.

Contributor guide