Fall back to unmodified default profile if the overridden version is invalid
This commit is contained in:
parent
5a68d26d59
commit
d8dffc9dd3
1 changed files with 1 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ class PrinterProfileManager(object):
|
|||
profile = self._ensure_valid_profile(dict_merge(copy.deepcopy(self.__class__.default), default_overrides))
|
||||
if not profile:
|
||||
self._logger.warn("Invalid default profile after applying overrides")
|
||||
raise InvalidProfileError()
|
||||
return copy.deepcopy(self.__class__.default)
|
||||
return profile
|
||||
|
||||
def _get_profile_path(self, identifier):
|
||||
|
|
|
|||
Loading…
Reference in a new issue