econchick / new-coder

New Coder tutorials
zlib License
597 stars 394 forks source link

Strange error when reproducing the code in API example #82

Closed springcoil closed 10 years ago

springcoil commented 10 years ago

Traceback (most recent call last): File "peadarapi.py", line 405, in main() File "peadarapi.py", line 385, in main adjusted_price = cpi_data.get_adjusted_price(price, year) File "peadarapi.py", line 131, in get_adjusted_price current_cpi = self.year_cpi[current_year]

econchick commented 10 years ago

Thanks for letting me know! Fixed with 045415a2b3306bc40bbffbce3af8fe48a469eb24 - with the new year, looks like there is no CPI data for 2014.