Skip to content

Commit 1e4ce5b

Browse files
committed
Fixed exception formatting and import error
1 parent 0388305 commit 1e4ce5b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

nipype/pipeline/plugins/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
from .slurmgraph import SLURMGraphPlugin
2020

2121
from .callback_log import log_nodes_cb
22+
from . import semaphore_singleton

nipype/pipeline/plugins/multiproc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from ..engine import MapNode
1818
from ...utils.misc import str2bool
1919
from ... import logging
20-
import semaphore_singleton
20+
from nipype.pipeline.plugins import semaphore_singleton
2121
from .base import (DistributedPluginBase, report_crash)
2222

2323
# Init logger

nipype/utils/draw_gantt_chart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def log_to_json(logfile):
2323
try:
2424
y = json.loads(i)
2525
l.append(y)
26-
except Exception, e:
26+
except Exception:
2727
pass
2828

2929
lines = l

0 commit comments

Comments
 (0)