Skip to content

Commit

Permalink
handle for regular str objects, re #11597
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Nov 26, 2024
1 parent e315812 commit 2a19dfc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions arches/app/datatypes/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2256,11 +2256,14 @@ def transform_value_for_tile(self, value, **kwargs):
for test_method in [uuid.UUID, json.loads, ast.literal_eval]:
try:
converted_value = test_method(value)
break
except:
converted_value = False
if converted_value is not False:
break
if converted_value is False:

if converted_value is False and value != "":
converted_value = value # is a string, likely legacyid
elif converted_value is False:
logger.warning("ResourceInstanceDataType: value is empty")
return []
else:
converted_value = value
Expand Down

0 comments on commit 2a19dfc

Please sign in to comment.