mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 04:18:42 +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:
|
try:
|
||||||
from requests.exceptions import RequestException
|
from requests.exceptions import RequestException # noqa: F401, pylint: disable=unused-import
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# Either docker-py is no longer using requests, or docker-py isn't around either,
|
# 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
|
# 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.
|
# the credential store api.
|
||||||
if HAS_DOCKER_PY:
|
if HAS_DOCKER_PY:
|
||||||
try:
|
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
|
from docker.credentials import Store
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user