Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share.refresh() method in 1.1.3 raises exception #11

Closed
lebedov opened this issue Feb 6, 2015 · 2 comments
Closed

Share.refresh() method in 1.1.3 raises exception #11

lebedov opened this issue Feb 6, 2015 · 2 comments

Comments

@lebedov
Copy link

@lebedov lebedov commented Feb 6, 2015

When I tried to refresh the data associated with the 'GOOG' share, I observed the following:

>>> import yahoo_finance
>>> s=yahoo_finance.Share('GOOG')
>>> s.get_price()
'532.42'
>>> s.refresh()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/lev/miniconda/envs/DEFAULT/lib/python2.7/site-packages/yahoo_finance/__init__.py", line 141, in refresh
    self.data_set = self._fetch()
  File "/home/lev/miniconda/envs/DEFAULT/lib/python2.7/site-packages/yahoo_finance/__init__.py", line 178, in _fetch
    data = super(Share, self)._fetch()
  File "/home/lev/miniconda/envs/DEFAULT/lib/python2.7/site-packages/yahoo_finance/__init__.py", line 133, in _fetch
    data = self._request(query)
  File "/home/lev/miniconda/envs/DEFAULT/lib/python2.7/site-packages/yahoo_finance/__init__.py", line 122, in _request
    raise YQLQueryError(response['error']['description'])
yahoo_finance.YQLQueryError: Query failed with error: ""Query syntax error(s) [line 1:29 expecting table got 'where',line 1:36 expecting equalityExpression got '=']"".

I'm using Python 2.7.9 on Ubuntu 14.04.1.

@lukaszbanasiak
Copy link
Owner

@lukaszbanasiak lukaszbanasiak commented Feb 23, 2015

@lebedov I confirm error. Fix it soon.

@lukaszbanasiak
Copy link
Owner

@lukaszbanasiak lukaszbanasiak commented Feb 23, 2015

Fixed in 97c4358 and released in 1.1.4 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.