brookemckim/undergroundweather — Issue #8: Passing in invalid zip results in exception
Author: brookemckim
Created: 2011-10-17 02:13:42+00:00
State: open
Labels: Bug

```
uw.forecast(191)

Calling http://api.wunderground.com/api/604bd98b6c2dd625/forecast/q/191.json
NoMethodError: undefined method `[]' for nil:NilClass
from /Users/bmckim/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/undergroundweather-0.0.1/lib/UndergroundWeather/features/forecast.rb:7:in `initialize'
from /Users/bmckim/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/undergroundweather-0.0.1/lib/UndergroundWeather/features.rb:23:in `new'
from /Users/bmckim/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/undergroundweather-0.0.1/lib/UndergroundWeather/features.rb:23:in `block (2 levels) in '
from (irb):6
from /Users/bmckim/.rbenv/versions/1.9.2-p290/bin/irb:12:in `

'
```