diff --git a/kolla/image/tasks.py b/kolla/image/tasks.py index 632239d34a..c6cde6bbe6 100644 --- a/kolla/image/tasks.py +++ b/kolla/image/tasks.py @@ -17,11 +17,16 @@ import os import shutil import tarfile -import docker.errors +try: + import docker.errors +except (ImportError, ModuleNotFoundError): + pass + try: import podman.errors.exceptions except (ImportError, ModuleNotFoundError): pass + import git import requests from requests import exceptions as requests_exc