From c150445b5f4d560db394683367adf5dd805e43d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Wed, 25 Sep 2024 08:49:01 -0700 Subject: [PATCH] Preserve empty strings in error messages --- src/lvmcryo/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lvmcryo/__main__.py b/src/lvmcryo/__main__.py index e223caa..d672cf6 100644 --- a/src/lvmcryo/__main__.py +++ b/src/lvmcryo/__main__.py @@ -581,7 +581,7 @@ async def ln2( write_to_db=True, api_db_route=config.internal_config["api_routes"]["register_fill"], db_extra_payload={ - "error": str(error) if error else None, + "error": str(error) if error is not None else None, "action": action.value, "log_file": str(config.log_path) if config.log_path else None, "json_file": str(json_path) if json_path and write_json else None,