Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bdd5a3a

Browse files
committedJun 30, 2019
Fix initialization of 'none' template
1 parent 698e0b8 commit bdd5a3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎packages/python/plotly/plotly/io/_templates.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def __getitem__(self, item):
6767

6868
if item == "none":
6969
# "none" is a special built-in named template that applied no defaults
70-
self._templates[item] = Template()
70+
template = Template()
71+
self._templates[item] = template
7172
else:
7273
# Load template from package data
7374
path = os.path.join("package_data", "templates", item + ".json")

0 commit comments

Comments
 (0)
Please sign in to comment.