Skip to content

Commit 601fd4c

Browse files
Fix NoneTypes for Path in madx_wrapper (#364)
This fixes issue #363
1 parent 433237e commit 601fd4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

omc3/madx_wrapper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ def madx_wrapper_params():
6868
def main(opt):
6969
run_file(
7070
input_file=Path(opt.file),
71-
output_file=Path(opt.output),
72-
log_file=Path(opt.log),
71+
output_file=Path(opt.output) if opt.output else None,
72+
log_file=Path(opt.log) if opt.log else None,
7373
madx_path=Path(opt.madx_path),
74-
cwd=Path(opt.cwd)
74+
cwd=Path(opt.cwd) if opt.cwd else None
7575
)
7676

7777

0 commit comments

Comments
 (0)