dont lowercase null when checking

lowers the chance that if the value is actually
"NULL" or 'Null' or something, it isn't misidentified
This commit is contained in:
Sean Breckenridge 2024-06-03 17:19:59 -07:00
parent e145d8887d
commit 0c2001e611

View file

@ -209,7 +209,9 @@ def mms() -> Iterator[Res[MMS]]:
def _resolve_null_str(value: Optional[str]) -> Optional[str]: def _resolve_null_str(value: Optional[str]) -> Optional[str]:
if value is None: if value is None:
return None return None
if value.lower() == 'null': # hmm.. theres some risk of the text actually being 'null', but theres
# no way to distinguish that from XML values
if value == 'null':
return None return None
return value return value