Handle the case where docker is not available

Change-Id: I473ea1c68d2fd7f15fa0545d77892276b1accfeb
This commit is contained in:
Bartosz Bezak 2023-11-28 12:02:41 +01:00
parent 81dc7a6b74
commit ef4bd9bbcd

View File

@ -17,11 +17,16 @@ import os
import shutil import shutil
import tarfile import tarfile
import docker.errors try:
import docker.errors
except (ImportError, ModuleNotFoundError):
pass
try: try:
import podman.errors.exceptions import podman.errors.exceptions
except (ImportError, ModuleNotFoundError): except (ImportError, ModuleNotFoundError):
pass pass
import git import git
import requests import requests
from requests import exceptions as requests_exc from requests import exceptions as requests_exc