{"action":"opened","issue":{"url":"https://api.github.com/repos/RomelTorres/alpha_vantage/issues/8","repository_url":"https://api.github.com/repos/RomelTorres/alpha_vantage","labels_url":"https://api.github.com/repos/RomelTorres/alpha_vantage/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/RomelTorres/alpha_vantage/issues/8/comments","events_url":"https://api.github.com/repos/RomelTorres/alpha_vantage/issues/8/events","html_url":"https://github.com/RomelTorres/alpha_vantage/issues/8","id":235029799,"number":8,"title":"Variable 'err' referenced before assignment","user":{"login":"jwallden","id":181075,"avatar_url":"https://avatars0.githubusercontent.com/u/181075?v=3","gravatar_id":"","url":"https://api.github.com/users/jwallden","html_url":"https://github.com/jwallden","followers_url":"https://api.github.com/users/jwallden/followers","following_url":"https://api.github.com/users/jwallden/following{/other_user}","gists_url":"https://api.github.com/users/jwallden/gists{/gist_id}","starred_url":"https://api.github.com/users/jwallden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwallden/subscriptions","organizations_url":"https://api.github.com/users/jwallden/orgs","repos_url":"https://api.github.com/users/jwallden/repos","events_url":"https://api.github.com/users/jwallden/events{/privacy}","received_events_url":"https://api.github.com/users/jwallden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-10T22:08:15Z","updated_at":"2017-06-10T22:08:15Z","closed_at":null,"body":"When trying to fetch data for a symbol that does not exist in the api i get the following:\r\n\r\nTraceback (most recent call last):\r\n  File \"manage.py\", line 29, in <module>\r\n    outputsize='compact')\r\n  File \"/home/joakim/.virtualenvs/alphavantage/lib/python3.5/site-packages/alpha_vantage/alphavantage.py\", line 152, in _format_wrapper\r\n    json_response, data_key, meta_data_key = func(self, *args, **kwargs)\r\n  File \"/home/joakim/.virtualenvs/alphavantage/lib/python3.5/site-packages/alpha_vantage/alphavantage.py\", line 138, in _call_wrapper\r\n    return self._handle_api_call(url), data_key, meta_data_key\r\n  File \"/home/joakim/.virtualenvs/alphavantage/lib/python3.5/site-packages/alpha_vantage/alphavantage.py\", line 76, in _retry_wrapper\r\n    raise ValueError(err)\r\nUnboundLocalError: local variable 'err' referenced before assignment"}}
{"actor":{"display_login":"jwallden"}}