There was an error while loading. Please reload this page.
1 parent ec5eccc commit 1ce6b82Copy full SHA for 1ce6b82
src/structurizr/workspace.py
@@ -231,7 +231,7 @@ def dump(
231
kwargs: other arguments to pass through to `json.dumps()`.
232
"""
233
filename = Path(filename)
234
- with gzip.open(filename, "wt") if zip else open(filename, "wt") as handle:
+ with gzip.open(filename, "wt") if zip else filename.open("wt") as handle:
235
handle.write(self.dumps(indent=indent, **kwargs))
236
237
def dumps(self, indent: Optional[int] = None, **kwargs):
0 commit comments