Skip to content

Commit

Permalink
Improve log message so it does not break in case of None values
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana committed Nov 28, 2024
1 parent 06f242a commit 61cf84d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cosmos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Contains dags, task groups, and operators.
"""

__version__ = "1.7.1"
__version__ = "1.8.0a1"


from cosmos.airflow.dag import DbtDag
Expand Down
2 changes: 1 addition & 1 deletion cosmos/dbt/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def is_freshness_effective(freshness: Optional[dict[str, Any]]) -> bool:

def run_command(command: list[str], tmp_dir: Path, env_vars: dict[str, str]) -> str:
"""Run a command in a subprocess, returning the stdout."""
logger.info("Running command: `%s`", " ".join(command))
logger.info("Running command: `%s`", " ".join(str(arg) if arg is not None else "<None>" for arg in command))
logger.debug("Environment variable keys: %s", env_vars.keys())
process = Popen(
command,
Expand Down

0 comments on commit 61cf84d

Please sign in to comment.