diff --git a/cwltool/task_queue.py b/cwltool/task_queue.py index eed705269..59b1609e9 100644 --- a/cwltool/task_queue.py +++ b/cwltool/task_queue.py @@ -55,8 +55,8 @@ def _task_queue_func(self) -> None: return try: task() - except BaseException as e: - _logger.exception("Unhandled exception running task") + except BaseException as e: # noqa: B036 + _logger.exception("Unhandled exception running task", exc_info=e) self.error = e finally: with self.lock: diff --git a/tests/test_js_sandbox.py b/tests/test_js_sandbox.py index e3d1d102f..f4839e8a0 100644 --- a/tests/test_js_sandbox.py +++ b/tests/test_js_sandbox.py @@ -65,7 +65,7 @@ def hide_nodejs(temp_dir: Path) -> str: os.symlink(os.path.join(dirname, entry), new_dir / entry) paths.append(str(new_dir)) dirname_path = Path(dirname) - for path in paths: + for path in list(paths): if Path(path).resolve() == dirname_path: paths.remove(path) return ":".join(paths)