Skip to content

Commit

Permalink
check if status_budynku is null. Closes: #26
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktorn committed Jul 17, 2015
1 parent 3b0df72 commit 2c33e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion punktyadresowe_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ def _isEligible(self, addr):
if '?' in addr.housenumber or 'bl' in addr.housenumber:
self.__log.debug('Ignoring address %s because has strange housenumber: %s', addr, addr.housenumber)
return False
if addr.status_budynku.upper() == 'PROGNOZOWANY':
if addr.status_budynku and addr.status_budynku.upper() == 'PROGNOZOWANY':
self.__log.debug('Ignoring address %s because STATUS_BUDYNKU = %s', addr, addr.status_budynku)
return False
if not addr.get_point().within(self.shape):
Expand Down

0 comments on commit 2c33e3d

Please sign in to comment.