mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Ignore flake8-bugbear false positive
See: https://github.com/PyCQA/flake8-bugbear/issues/269
This commit is contained in:
parent
cd412aa161
commit
843c58b92e
1 changed files with 5 additions and 1 deletions
|
|
@ -39,7 +39,11 @@ class ServerMixin:
|
|||
)
|
||||
s = self.storage_class(**args)
|
||||
if not list(s.list()):
|
||||
request.addfinalizer(lambda: s.session.request("DELETE", ""))
|
||||
request.addfinalizer(
|
||||
# Ignoreng flake8-bugbear false positive.
|
||||
# See: https://github.com/PyCQA/flake8-bugbear/issues/269
|
||||
lambda: s.session.request("DELETE", "") # noqa: B023
|
||||
)
|
||||
return args
|
||||
|
||||
raise RuntimeError("Failed to find free collection.")
|
||||
|
|
|
|||
Loading…
Reference in a new issue