mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure valid data written to icon_data on windows
This commit is contained in:
parent
f9cacdff88
commit
20e84ebcc8
@ -110,7 +110,7 @@ if iswindows:
|
||||
data = None
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
if data:
|
||||
if isinstance(data, (bytes, bytearray)) or data is None:
|
||||
entry['icon_data'] = data
|
||||
return entry
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user