We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents adfb7ef + 8fdca97 commit 495ef82Copy full SHA for 495ef82
NodeGraphQt/base/graph.py
@@ -1862,12 +1862,19 @@ def save_session(self, file_path):
1862
"""
1863
serialized_data = self._serialize(self.all_nodes())
1864
file_path = file_path.strip()
1865
+
1866
+ def default(obj):
1867
+ if isinstance(obj, set):
1868
+ return list(obj)
1869
+ return obj
1870
1871
with open(file_path, 'w') as file_out:
1872
json.dump(
1873
serialized_data,
1874
file_out,
1875
indent=2,
- separators=(',', ':')
1876
+ separators=(',', ':'),
1877
+ default=default
1878
)
1879
1880
def load_session(self, file_path):
0 commit comments