mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 05:23:01 +02:00
...
This commit is contained in:
parent
6393e98e89
commit
01be1fcee1
1 changed files with 2 additions and 2 deletions
|
|
@ -140,8 +140,8 @@ def __init__(self, *args):
|
|||
self.scheduler_config = SchedulerConfig()
|
||||
try:
|
||||
with zipfile.ZipFile(P('builtin_recipes.zip'), 'r') as zf:
|
||||
self.favicons = dict([(x, zf.getinfo(x)) for x in zf.namelist() if
|
||||
x.endswith('.png')])
|
||||
self.favicons = dict([(x.filename, x) for x in zf.infolist() if
|
||||
x.filename.endswith('.png')])
|
||||
except:
|
||||
self.favicons = {}
|
||||
self.do_refresh()
|
||||
|
|
|
|||
Loading…
Reference in a new issue