From da17d312ac3cfaac618dbad960fd5d1ef7a0a783 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 14 Sep 2021 14:21:40 +0200 Subject: [PATCH] prevend from saving changes if host is invalid --- openpype/tools/new_publisher/control.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openpype/tools/new_publisher/control.py b/openpype/tools/new_publisher/control.py index b655a0cae9..be923f1255 100644 --- a/openpype/tools/new_publisher/control.py +++ b/openpype/tools/new_publisher/control.py @@ -600,7 +600,8 @@ class PublisherController: self._reset_instances() def save_changes(self): - self.create_context.save_changes() + if self.create_context.host_is_valid: + self.create_context.save_changes() def remove_instances(self, instances): # QUESTION Expect that instaces are really removed? In that case save