Initial tansition to SQLAlchemy on the Game Table resource

This commit is contained in:
iamBadgers
2026-04-22 22:16:27 -07:00
parent a0bc0f0feb
commit b6cef4f3c1
9 changed files with 75 additions and 51 deletions

View File

@@ -40,7 +40,7 @@ def delete_container(docker_id) -> bool:
container = client.containers.get(docker_id)
container.remove()
return True
except docker.errors.NotFound, docker.errors.APIError:
except (docker.errors.NotFound, docker.errors.APIError):
return False
@@ -50,7 +50,7 @@ def stop_container(docker_id) -> bool:
container = client.containers.get(docker_id)
container.kill()
return True
except docker.errors.NotFound, docker.errors.APIError:
except (docker.errors.NotFound, docker.errors.APIError):
return False
@@ -66,7 +66,7 @@ def start_foundry_container(table: GameTable, key: KeyTable):
if table.docker_id != None and table.docker_id != 0:
try:
container = client.containers.get(table.docker_id)
except docker.errors.NotFound, docker.errors.NullResource:
except (docker.errors.NotFound, docker.errors.NullResource):
container = None
if container: