ruff: enable B warnings (mainly suppressed exceptions and unused variables)
This commit is contained in:
parent
d0df8e8f2d
commit
72cc8ff3ac
30 changed files with 83 additions and 67 deletions
|
@ -44,8 +44,8 @@ def _prepare_takeouts_dir(tmp_path: Path) -> Path:
|
|||
|
||||
try:
|
||||
track = one(testdata().rglob('italy-slovenia-2017-07-29.json'))
|
||||
except ValueError:
|
||||
raise RuntimeError('testdata not found, setup git submodules?')
|
||||
except ValueError as e:
|
||||
raise RuntimeError('testdata not found, setup git submodules?') from e
|
||||
|
||||
# todo ugh. unnecessary zipping, but at the moment takeout provider doesn't support plain dirs
|
||||
import zipfile
|
||||
|
|
|
@ -49,8 +49,8 @@ def _prepare_takeouts_dir(tmp_path: Path) -> Path:
|
|||
|
||||
try:
|
||||
track = one(testdata().rglob('italy-slovenia-2017-07-29.json'))
|
||||
except ValueError:
|
||||
raise RuntimeError('testdata not found, setup git submodules?')
|
||||
except ValueError as e:
|
||||
raise RuntimeError('testdata not found, setup git submodules?') from e
|
||||
|
||||
# todo ugh. unnecessary zipping, but at the moment takeout provider doesn't support plain dirs
|
||||
import zipfile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue