mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Report undecodeable font paths
This commit is contained in:
parent
148c9fb57a
commit
4d60715c8a
@ -73,6 +73,7 @@ def fc_list():
|
|||||||
try:
|
try:
|
||||||
ans.append(d.decode(filesystem_encoding))
|
ans.append(d.decode(filesystem_encoding))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
prints('Ignoring undecodeable font path: %r' % d)
|
||||||
continue
|
continue
|
||||||
end(str_list)
|
end(str_list)
|
||||||
if len(ans) < 3:
|
if len(ans) < 3:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user