Skip to content

Commit 1ce6b82

Browse files
committed
refactor(Workspace): PR feedback
1 parent ec5eccc commit 1ce6b82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/structurizr/workspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def dump(
231231
kwargs: other arguments to pass through to `json.dumps()`.
232232
"""
233233
filename = Path(filename)
234-
with gzip.open(filename, "wt") if zip else open(filename, "wt") as handle:
234+
with gzip.open(filename, "wt") if zip else filename.open("wt") as handle:
235235
handle.write(self.dumps(indent=indent, **kwargs))
236236

237237
def dumps(self, indent: Optional[int] = None, **kwargs):

0 commit comments

Comments
 (0)