fix: empty image check (#543)

This commit is contained in:
Henry Schreiner
2021-01-17 13:08:55 -05:00
committed by GitHub
parent fbd5bc707f
commit 45c3c2ea8e
+3
View File
@@ -30,6 +30,9 @@ class DockerContainer:
bash_stdout: IO[bytes]
def __init__(self, docker_image: str, simulate_32_bit: bool = False, cwd: Optional[PathOrStr] = None):
if not docker_image:
raise ValueError("Must have a non-empty docker image to run.")
self.docker_image = docker_image
self.simulate_32_bit = simulate_32_bit
self.cwd = cwd