Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upgetSymbols.yahooj infinite loop if symbol has no data #63
Comments
|
Looks good to me, @joshuaulrich. Checked the source for such a page, and indeed there is no table matching that xpath. |
The while() loop never terminates if there is no table matching the xpath used to create 'rows'. Break if there is less than one row, and then throw an error. Fixes #63.
There's a potential for an infinite loop if
getSymbols.yahoojis called on a symbol that has no data. For example,getSymbols("foo", src="yahooj"). The patch below seems to fix the issue.@wthielen what do you think?