From 3bc35fbe5e05690b8e91d2bd3ad89983e2b16d30 Mon Sep 17 00:00:00 2001 From: Samuel Letellier-Duchesne Date: Mon, 8 Jan 2024 15:54:30 -0500 Subject: [PATCH] empty string if None value in epbunch creation --- archetypal/idfclass/idf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archetypal/idfclass/idf.py b/archetypal/idfclass/idf.py index 5963227d..91ddbfb1 100644 --- a/archetypal/idfclass/idf.py +++ b/archetypal/idfclass/idf.py @@ -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":