Skip to content

Commit 8a76045

Browse files
committed
context menu fix #430 suggestion form @KwentiN-ui
1 parent 3ac59f5 commit 8a76045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NodeGraphQt/base/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ def set_context_menu_from_file(self, file_path, menu='graph'):
907907
if not file.is_file():
908908
raise IOError('file doesn\'t exist: "{}"'.format(file))
909909

910-
with file.open() as f:
910+
with file.open(encoding='utf8') as f:
911911
data = json.load(f)
912912
context_menu = self.get_context_menu(menu)
913913
self._deserialize_context_menu(context_menu, data, file)

0 commit comments

Comments
 (0)