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:
parent
e145d8887d
commit
0c2001e611
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue