This commit should fix your issue:
https://github.com/kovidgoyal/calibre/commit/2653a0c67b5ac4a87740ca533a73309d4ab6a3b1
This commit should fix your issue:
https:/ /github. com/kovidgoyal/ calibre/ commit/ 2653a0c67b5ac4a 87740ca533a7330 9d4ab6a3b1