8000 address flake8-bugbear suggestions · common-workflow-language/cwltool@5d877a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d877a4

Browse files
committed
address flake8-bugbear suggestions
1 parent b0b6974 commit 5d877a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cwltool/task_queue.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def _task_queue_func(self) -> None:
5555
return
5656
try:
5757
task()
58-
except BaseException as e:
59-
_logger.exception("Unhandled exception running task")
58+
except BaseException as e: # noqa: B036
59+
_logger.exception("Unhandled exception running task", exc_info=e)
6060
self.error = e
6161
finally:
6262
with self.lock:

tests/test_js_sandbox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def hide_nodejs(temp_dir: Path) -> str:
6565
os.symlink(os.path.join(dirname, entry), new_dir / entry)
6666
paths.append(str(new_dir))
6767
dirname_path = Path(dirname)
68-
for path in paths:
68+
for path in list(paths):
6969
if Path(path).resolve() == dirname_path:
7070
paths.remove(path)
7171
return ":".join(paths)

0 commit comments

Comments
 (0)
0