Skip to content

Commit

Permalink
fix typeerror 'NoneType' object is not iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Jul 9, 2024
1 parent 0ddcd34 commit 0ef97f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daras_ai_v2/prompt_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def variables_input(
else:
template_var_names |= jinja2.meta.find_undeclared_variables(parsed)

old_vars = st.session_state.get(key, {})
old_vars = st.session_state.get(key) or {}

var_add_key = f"--{key}:add_btn"
var_name_key = f"--{key}:add_name"
Expand Down

0 comments on commit 0ef97f1

Please sign in to comment.