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 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