Skip to content

Commit d32774d

Browse files
committed
Fix restoring validation state of layout after template initialization
1 parent 33b13cd commit d32774d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: packages/python/plotly/plotly/basedatatypes.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1951,9 +1951,8 @@ def _initialize_layout_template(self):
19511951
try:
19521952
template_dict = pio.templates[pio.templates.default]
19531953
self._layout_obj.template = template_dict
1954-
except Exception:
1954+
finally:
19551955
self._layout_obj._validate = self._validate
1956-
raise
19571956

19581957
@property
19591958
def layout(self):

0 commit comments

Comments
 (0)