From 2621bca8cc74edb525a83dd6f30733e18a9643d2 Mon Sep 17 00:00:00 2001 From: Cyrus Hiatt Date: Wed, 3 Apr 2019 07:27:26 -0700 Subject: [PATCH] re Prevents error when saving a domain dt used in the primary discriptor fn with a value of 'None' #4725 --- arches/app/datatypes/datatypes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arches/app/datatypes/datatypes.py b/arches/app/datatypes/datatypes.py index 5059bb05022..045b7a4deca 100644 --- a/arches/app/datatypes/datatypes.py +++ b/arches/app/datatypes/datatypes.py @@ -1439,9 +1439,10 @@ def append_to_document(self, document, nodevalue, nodeid, tile, provisional=Fals def get_display_value(self, tile, node): new_values = [] - for val in tile.data[str(node.nodeid)]: - option = self.get_option_text(node, val) - new_values.append(option) + if tile.data[str(node.nodeid)] is not None: + for val in tile.data[str(node.nodeid)]: + option = self.get_option_text(node, val) + new_values.append(option) return ','.join(new_values) def transform_export_values(self, value, *args, **kwargs):