cgoldberg / ystockquote

Fetch stock quote data from Yahoo Finance
534 stars 181 forks source link

Get_historcial HTTPError 404 On days market was closed #35

Open samuelhopkins opened 9 years ago

samuelhopkins commented 9 years ago

An attempt to get historical data from a weekday when the market was closed, for example national holidays, results in a 404 error from urllib. It would probably be better to catch the error and return an empty dict.

BChip commented 9 years ago

Fixed

cgoldberg commented 9 years ago

send a pull request

BChip commented 9 years ago

Pull Request Sent