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 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
|
||||
|
Loading…
Reference in New Issue
Block a user