Skip to content

Commit

Permalink
address flake8-bugbear suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Jan 29, 2024
1 parent 3ac795c commit 35eeab4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cwltool/task_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_js_sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 35eeab4

Please sign in to comment.