Skip to content

Commit

Permalink
lint: fix flake8-blind-except errors
Browse files Browse the repository at this point in the history
To reproduce the errors:

```
ruff check --select "BLE" black_it tests examples scripts
```
  • Loading branch information
marcofavorito authored and marcofavoritobi committed Sep 1, 2023
1 parent 44e1a45 commit d0bd368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def run_process(
)
try:
stdout_bytes, stderr_bytes = process.communicate(timeout=timeout)
except Exception as exc:
except Exception as exc: # noqa: BLE001
# clean up process
# first, try to stop it gracefully
process.send_signal(signal.SIGTERM)
Expand Down

0 comments on commit d0bd368

Please sign in to comment.