Skip to content

Commit a0b977f

Browse files
committed
Corrected a bug with filename truncation.
1 parent 7f247a0 commit a0b977f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

structure_threader/structure_threader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ def runprogram(wrapped_prog, iterations):
7474
except OSError as err:
7575
if err.errno != 17:
7676
raise
77-
infile = arg.infile[:-4]
77+
else:
78+
infile = arg.infile[:-4]
7879

7980

8081
cli = ["python2", arg.faststructure_bin, "-K", str(K), "--input",

0 commit comments

Comments
 (0)