Skip to content

Commit

Permalink
GO FORMAT YOURSELF (black)
Browse files Browse the repository at this point in the history
  • Loading branch information
cow-bot committed Oct 6, 2021
1 parent cb9396c commit d697da5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions system-tests/create_filewriter_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ def add_var(var_name):
client.images.pull(IMAGE_NAME)
print("Done downloading docker image.")
try:
client.containers.get(TEST_IMAGE_NAME)
print(f"Found an old container with the name \"{CONTAINER_NAME}\". Removing.")
client.containers.get(TEST_IMAGE_NAME).remove(force=True)
client.containers.get(TEST_IMAGE_NAME)
print(f'Found an old container with the name "{CONTAINER_NAME}". Removing.')
client.containers.get(TEST_IMAGE_NAME).remove(force=True)
except Exception as e:
print(f"Failed to remove container due to: {e}")
print(f"Failed to remove container due to: {e}")
container = client.containers.create(
IMAGE_NAME,
name=CONTAINER_NAME,
Expand Down Expand Up @@ -117,11 +117,11 @@ def kill_and_remove(container):
try:
container.kill()
except docker.errors.APIError as e:
pass
pass
container.remove()
print(f"Removed container with name \"{container_name}\"")
print(f'Removed container with name "{container_name}"')
except docker.errors.APIError as e:
print(f"Failed to remove container \"{container_name}\" due to error: {e}")
print(f'Failed to remove container "{container_name}" due to error: {e}')


def run_conan(container):
Expand Down

0 comments on commit d697da5

Please sign in to comment.