diff --git a/src/pylint_airflow/checkers/dag.py b/src/pylint_airflow/checkers/dag.py index a3973c4..aefb51f 100644 --- a/src/pylint_airflow/checkers/dag.py +++ b/src/pylint_airflow/checkers/dag.py @@ -89,7 +89,9 @@ def _find_dag( return str(keyword.value.value), call_node if call_node.args: - # TODO support dag_ids set in other ways than constant. + if not hasattr(call_node.args[0], "value"): + # TODO Support dynamic dag_id. If dag_id is set from variable, it has no value attr. # pylint: disable=line-too-long + return None, None return call_node.args[0].value, call_node return None, None