Handle the case where docker is not available
Change-Id: I473ea1c68d2fd7f15fa0545d77892276b1accfeb
This commit is contained in:
parent
81dc7a6b74
commit
ef4bd9bbcd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user