mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 03:52:05 +00:00
[stable-2] Ignore more unnecessary import warnings (#587)
* Fix imports. (#585)
(cherry picked from commit a426232523)
* Add another ignore.
This commit is contained in:
parent
8e99d0c4da
commit
d50d6e05ca
@ -66,7 +66,7 @@ except ImportError:
|
||||
|
||||
|
||||
try:
|
||||
from requests.exceptions import RequestException
|
||||
from requests.exceptions import RequestException # noqa: F401, pylint: disable=unused-import
|
||||
except ImportError:
|
||||
# Either docker-py is no longer using requests, or docker-py isn't around either,
|
||||
# or docker-py's dependency requests is missing. In any case, define an exception
|
||||
|
||||
@ -152,7 +152,7 @@ NEEDS_DOCKER_PYCREDS = False
|
||||
# the credential store api.
|
||||
if HAS_DOCKER_PY:
|
||||
try:
|
||||
from docker.credentials.errors import StoreError, CredentialsNotFound
|
||||
from docker.credentials.errors import StoreError, CredentialsNotFound # noqa: F401, pylint: disable=unused-import
|
||||
from docker.credentials import Store
|
||||
except ImportError:
|
||||
try:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user