Skip to content

Commit

Permalink
fix MP_CONTEXT is not JSON serializable (#6650)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenyuLInx authored Jan 19, 2023
1 parent 30a1595 commit c85be32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/dbt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,10 @@ def args_to_dict(args):
dict_args = {}
# remove args keys that clutter up the dictionary
for key in var_args:
if key == "cls":
if key.lower() in var_args and key == key.upper():
# skip all capped keys being introduced by Flags in dbt.cli.flags
continue
if key in ["cls", "mp_context"]:
continue
if var_args[key] is None:
continue
Expand Down

0 comments on commit c85be32

Please sign in to comment.