Skip to content

Commit d309892

Browse files
committed
[IMP] base_wamas_ubl dict item default value
1 parent 9a311d7 commit d309892

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base_wamas_ubl/lib/wamas/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,9 @@ def generate_wamas_dict(dict_item, grammar, **kwargs): # noqa: C901
299299
if isinstance(ubl_path, list):
300300
lst_val = []
301301
for _item in ubl_path:
302-
lst_val.append(dict_item.get(_item, ""))
302+
lst_val.append(dict_item.get(_item) or "")
303303
if lst_val:
304-
val = " ".join(lst_val)
304+
val = " ".join(lst_val).strip()
305305
elif isinstance(ubl_path, dict):
306306
for _key in ubl_path:
307307
if dict_item.get(_key, False):

0 commit comments

Comments
 (0)