Skip to content

Commit ec143e0

Browse files
committed
Fix for #1575
Fixed exception syntax to be compatible with Python 3.
1 parent a26ef19 commit ec143e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/plugins/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def create_pyscript(node, updatehash=False, store_exception=True):
145145
cwd = os.getcwd()
146146
info = loadpkl(pklfile)
147147
result = info['node'].run(updatehash=info['updatehash'])
148-
except Exception, e:
148+
except Exception as e:
149149
etype, eval, etr = sys.exc_info()
150150
traceback = format_exception(etype,eval,etr)
151151
if info is None or not os.path.exists(info['node'].output_dir()):

0 commit comments

Comments
 (0)