Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion airflow/www/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2287,7 +2287,11 @@ def _clear_dag_tis(
except AirflowException as ex:
return redirect_or_json(origin, msg=str(ex), status="error", status_code=500)

assert isinstance(tis, collections.abc.Iterable)
if not isinstance(tis, collections.abc.Iterable):
raise AssertionError(
f"Expected dag.clear() to return an iterable for dry runs, got {tis} instead."
)

details = [str(t) for t in tis]

if not details:
Expand Down