diff --git a/api/core/database.py b/api/core/database.py index 8a7eaf4..f9ed534 100644 --- a/api/core/database.py +++ b/api/core/database.py @@ -68,7 +68,7 @@ def __init__( ): if not db_url.startswith("sqlite:///"): raise ValueError(f"SQLiteRDSJobQueue requires SQLite DB URL, got: {db_url}") - if not ((s3_client is None) == (s3_bucket is None)): + if not (bool(s3_client) == bool(s3_bucket)): raise ValueError( "Both s3_client and s3_bucket must be provided for S3 backup/restore, or both must be None." ) diff --git a/pyproject.toml b/pyproject.toml index 629ccf8..4cb96ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "api" -version = "0.3.0" +version = "0.3.1" description = "User-facing API of DECODE OpenCloud." authors = ["Arthur Jaques "] readme = "README.md"