Skip to content

Commit

Permalink
Preserve empty strings in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Sep 25, 2024
1 parent bd71b90 commit c150445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lvmcryo/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c150445

Please sign in to comment.