Migrate printer profile before saving as well
We want to make sure that externally added profiles are up to current format.
This commit is contained in:
1 parent
01e970553f
commit
896aad3ab0
1 file changed
+1
@@ -369,6 +369,7 @@ class PrinterProfileManager(object):
|
||||
return profile
|
||||
|
||||
def _save_to_path(self, path, profile, allow_overwrite=False):
|
||||
self._migrate_profile(profile)
|
||||
validated_profile = self._ensure_valid_profile(profile)
|
||||
if not validated_profile:
|
||||
raise InvalidProfileError()
|
||||
|
||||
Reference in new issue
Block a user