Ignore errors when cleaning up docker container in linux.py
This commit is contained in:
@@ -279,7 +279,10 @@ def build(options: BuildOptions) -> None:
|
|||||||
exit(1)
|
exit(1)
|
||||||
finally:
|
finally:
|
||||||
# Still gets executed, even when 'exit(1)' gets called
|
# Still gets executed, even when 'exit(1)' gets called
|
||||||
|
try:
|
||||||
call(['docker', 'rm', '--force', '-v', container_name])
|
call(['docker', 'rm', '--force', '-v', container_name])
|
||||||
|
except subprocess.CalledProcessError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def troubleshoot(package_dir: str, error: Exception) -> None:
|
def troubleshoot(package_dir: str, error: Exception) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user