mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
- When subprocess.call() fails and one of the arguments is a Path-like object, the exception also contains a Path-like object. The default JSON encoder can't handle this and will lead to failure when encoding the exception altogether resulting in a generic exception. Tests: - Add an invalid .zim file to kiwix. It fails and shows a default error exception. Without this patch, it fails. - Functional tests for kiwix pass. - Backups app can list archives. This is a result returned from a privileged method. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>