Skip to content

Commit 8f1b104

Browse files
committed
Added AttributeError to exception for more specific error handling
1 parent 3f7649c commit 8f1b104

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/engine/nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ def write_report(self, report_type=None, cwd=None):
744744
try:
745745
rst_dict['runtime_memory_gb'] = self.result.runtime.runtime_memory_gb
746746
rst_dict['runtime_threads'] = self.result.runtime.runtime_threads
747-
except:
747+
except AttributeError:
748748
logger.info('Runtime memory and threads stats unavailable')
749749
if hasattr(self.result.runtime, 'cmdline'):
750750
rst_dict['command'] = self.result.runtime.cmdline

0 commit comments

Comments
 (0)