Browse files

Handle bad data in FIPS6 field

  • Loading branch information...
1 parent f6eb049 commit 600f5e1c4f9f008bb33f87c0eca70ade5641551b @zebpalmer committed Mar 23, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 weatheralerts/cap.py
  2. +1 −1 weatheralerts/weather_alerts.py
View
2 weatheralerts/cap.py
@@ -70,7 +70,7 @@ def _parse_entry(self, dom):
n = n + 1
finally:
try:
- entry['samecodes'] = entry['FIPS6'] # backward compatibility till refactor complete
+ entry['samecodes'] = [x for x in entry['FIPS6'] if str(x).isdigit()] # handle bad nws data
except Exception:
entry['samecodes'] = []
else:
View
2 weatheralerts/weather_alerts.py
@@ -6,7 +6,7 @@
class WeatherAlerts(object):
'''
- WeatherAlerts object that controls interaction with the NWS CAP alerts feed as well and varios geo data sources.
+ WeatherAlerts object that controls interaction with the NWS CAP alerts feed as well as varios geo data sources.
Most interaction from users, scripts, etc will be through the api provided by this `WeatherAlerts` class.
So, as we approach a more stable project, the API in this class will also become more stable.

0 comments on commit 600f5e1

Please sign in to comment.