Skip to content

Commit e29c191

Browse files
authored
fix write_report for local zip files
1 parent 08d1246 commit e29c191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dnacauldron/Assembly/AssemblyReportWriter/AssemblyReportWriter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,5 +182,5 @@ def write_report(self, assembly_simulation, target):
182182
assembly_simulation, report_root, error_type="warnings"
183183
)
184184

185-
if hasattr(report_root, "_close"):
185+
if (target == "@memory") or str(target).endswith(".zip"):
186186
return report_root._close()

0 commit comments

Comments
 (0)