mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-05 23:04:30 +08:00
Handle encoding errors in back-up zips
Seems to happen when there's files in there with badly-encoded characters in the file names. Fixes Sentry issue CURA-2S7.
This commit is contained in:
parent
58f4d44694
commit
9ab41c062b
@ -206,6 +206,8 @@ class Backup:
|
||||
archive.extract(archive_filename, target_path)
|
||||
except (PermissionError, EnvironmentError):
|
||||
Logger.logException("e", f"Unable to extract the file {archive_filename} from the backup due to permission or file system errors.")
|
||||
except UnicodeEncodeError:
|
||||
Logger.error(f"Unable to extract the file {archive_filename} because of an encoding error.")
|
||||
CuraApplication.getInstance().processEvents()
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user