Fix bugs in geocoding and geolocation MicroMVDs.

This commit is contained in:
Dion Moult
2020-09-10 17:43:30 +10:00
parent 9c591ce285
commit c6a5bdf4eb
4 changed files with 52 additions and 36 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ def assert_attribute(element, name, value=None):
if not value:
if getattr(element, name) is None:
assert False, 'The element {} does not have a value for the attribute {}'.format(element, name)
return
return getattr(element, name)
if value == 'NULL':
value = None
actual_value = getattr(element, name)