Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ def pdok_location_info(postal_code: Optional[str] = None, house_number: Optional
|
|
93 |
|
94 |
docs = data.get("response", {}).get("docs", [])
|
95 |
if not docs:
|
96 |
-
|
97 |
|
98 |
first_result = docs[0]
|
99 |
location_info = PDOKLocationInfo(**first_result)
|
|
|
93 |
|
94 |
docs = data.get("response", {}).get("docs", [])
|
95 |
if not docs:
|
96 |
+
return None
|
97 |
|
98 |
first_result = docs[0]
|
99 |
location_info = PDOKLocationInfo(**first_result)
|