Skip to content

Commit

Permalink
[SH] make address null-safe (#149)
Browse files Browse the repository at this point in the history
* [SH] make address null-safe

Co-authored-by: Knut Hühne <[email protected]>
  • Loading branch information
cyroxx and k-nut authored Jan 23, 2025
1 parent bbd8867 commit 45a4e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jedeschule/spiders/schleswig_holstein.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def parse(self, response):
def normalize(item: Item) -> School:
return School(name=item.get('name'),
id='SH-{}'.format(item.get('id')),
address=" ".join([item.get('street'), item.get('houseNumber')]),
address=" ".join([item.get('street', ""), item.get('houseNumber', "")]).strip(),
zip=item.get("zipcode"),
city=item.get("city"),
email=item.get('email'),
Expand Down

0 comments on commit 45a4e88

Please sign in to comment.