Skip to content

Commit aee39f2

Browse files
committed
fix mypy
1 parent 21f2bc5 commit aee39f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

onnx_diagnostic/export/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def to_onnx(
159159
return_optimize_report=True,
160160
**(exporter_kwargs or {}),
161161
)
162-
if opt_stats and os.path.exists(filename):
162+
if opt_stats and filename and os.path.exists(filename):
163163
import pandas
164164

165165
stat_filename = f"{os.path.splitext(filename)[0]}.opt.xlsx"

0 commit comments

Comments
 (0)