Skip to content

Commit

Permalink
empty string if None value in epbunch creation (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelduchesne authored Jan 8, 2024
1 parent e2dd58b commit c1399cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archetypal/idfclass/idf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2123,7 +2123,7 @@ def anidfobject(self, key: str, aname: str = "", **kwargs) -> EpBunch:
namebunch(abunch, aname)
for k, v in kwargs.items():
try:
abunch[k] = v
abunch[k] = "" if v is None else v
except BadEPFieldError as e:
# Backwards compatibility
if str(e) == "unknown field Key_Name":
Expand Down

0 comments on commit c1399cb

Please sign in to comment.