From b99eed57476b4729a29bd12876f7249923e56cf9 Mon Sep 17 00:00:00 2001 From: nolan1999 Date: Mon, 7 Sep 2026 00:54:37 +0200 Subject: [PATCH] [FIX] See empty S3 bucket env var as unset --- api/core/database.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"