Skip to content

Commit 1d4502d

Browse files
STY: Further simplification
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 9ee0d42 commit 1d4502d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/base/support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def __exit__(self, exc_type, exc_value, exc_tb):
9999
traceback.format_exception(exc_type, exc_value, exc_tb)
100100
)
101101
# Gather up the exception arguments and append nipype info.
102-
exc_args = exc_value.args if exc_value.args else tuple()
102+
exc_args = exc_value.args or ()
103103
exc_args += (
104104
f"An exception of type {exc_type.__name__} occurred while "
105105
f"running interface {self._runtime.interface}.",

0 commit comments

Comments
 (0)