Merge pull request #454 from tjmnmk/devel

fix_desktop_image_in_thema_callback ignore utf-8 errors (fix for debi…
devel
multibootusb 5 years ago committed by GitHub
commit 4495c8d720
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -353,7 +353,7 @@ def update_distro_cfg_files(iso_link, usb_disk, distro, persistence=0):
return
theme_file = os.path.join(dir_, fname)
updated = False
with open(theme_file, 'r', encoding='utf-8') as f:
with open(theme_file, 'r', encoding='utf-8', errors='replace') as f:
pattern = re.compile(r'^desktop-image\s*:\s*(.*)$')
try:
src_lines = f.readlines()

Loading…
Cancel
Save