Skip to content

Commit 13be87a

Browse files
stilley2mgxd
andauthored
Update heudiconv/convert.py
Co-Authored-By: Mathias Goncalves <goncalves.mathias@gmail.com>
1 parent 121c4ad commit 13be87a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

heudiconv/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def prep_conversion(sid, dicoms, outdir, heuristic, converter, anon_sid,
219219
"the HEUDICONV_FILELOCK_TIMEOUT environmental variable "
220220
"to a value in seconds. If this process hangs, it may "
221221
"require a manual deletion of the {0}.".format(lockfile))
222-
timeout = os.environ.get("HEUDICONV_LOCKFILE_TIMEOUT", -1)
222+
timeout = os.getenv("HEUDICONV_LOCKFILE_TIMEOUT", -1)
223223
with filelock.SoftFileLock(lockfile, timeout=timeout):
224224
if seqinfo:
225225
keys = list(seqinfo)

0 commit comments

Comments
 (0)