Skip to content

Commit 00ef467

Browse files
authored
[HOTFIX] Incorrect call to warnings.warn
1 parent 8384523 commit 00ef467

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/utils/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ def cwd(self):
123123
try:
124124
self._cwd = os.getcwd()
125125
except OSError:
126-
warn('Trying to run Nipype from a nonexistent directory "%s".',
127-
os.getenv('PWD', 'unknown'))
126+
warn('Trying to run Nipype from a nonexistent directory "{}".'.format(
127+
os.getenv('PWD', 'unknown')), RuntimeWarning)
128128
raise
129129
return self._cwd
130130

0 commit comments

Comments
 (0)