grandlyon street sections: support data returning null values (#45042)
This commit is contained in:
parent
2056330836
commit
1fbb858798
|
@ -117,7 +117,8 @@ class GrandLyonStreetSections(BaseResource):
|
|||
for attribute in ('bornemindroite', 'bornemingauche',
|
||||
'bornemaxdroite', 'bornemaxgauche',
|
||||
'gid'):
|
||||
if value.get(attribute) == 'None':
|
||||
if value.get(attribute) in (None, 'None'):
|
||||
# data.grandlyon returned 'None' as a string at a time
|
||||
if 'min' in attribute:
|
||||
attribute_value = 0
|
||||
elif 'max' in attribute:
|
||||
|
|
Loading…
Reference in New Issue