From d8dffc9dd39c5f951a9f8948dd25c5f94e8bee9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 3 Feb 2015 11:46:30 +0100 Subject: [PATCH] Fall back to unmodified default profile if the overridden version is invalid --- src/octoprint/printer/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/printer/profile.py b/src/octoprint/printer/profile.py index bbb1105d..2a133383 100644 --- a/src/octoprint/printer/profile.py +++ b/src/octoprint/printer/profile.py @@ -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):