Merge pull request #5 from shamsu07/main

handle none type (fixes #3)
This commit is contained in:
Mark Joshwel 2023-06-14 14:30:14 +00:00 committed by GitHub
commit f0cf53841b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -223,7 +223,7 @@ def surplus(
# dont repeat if suburb is mentioned in the road itself
# 'Toa Payoh' in 'Lorong 1A Toa Payoh'
if location["address"].get("suburb", "")
not in location["address"].get("road")
not in location["address"].get("road", "")
else ""
)
).strip(),