Skip to content

Commit

Permalink
fix indexerror
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Jan 11, 2021
1 parent 27c02a4 commit 4e83475
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python_weather/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@

METRIC = "C"
IMPERIAL = "F"
__version__ = "0.2.1"
__version__ = "0.2.2"
__all__ = ("Client", "METRIC", "IMPERIAL", "__version__")
2 changes: 1 addition & 1 deletion python_weather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, response: str):

del self._parsed

data = self.dict["weatherdata"]["weather"]
data = self.dict["weatherdata"]["weather"][0]
self.weather_location_code = data.get("@weatherlocationcode")
self.weather_location_name = data.get("@weatherlocationname")
self.url = data.get("@url")
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
setup(
name = 'python-weather',
packages = ['python_weather'],
version = '0.2.1',
version = '0.2.2',
license='MIT',
description = 'A free and asynchronous Weather API Wrapper.',
long_description = open('README.md', 'r', encoding='utf-8').read(),
long_description_content_type='text/markdown',
author = 'vierofernando',
author_email = '[email protected]',
url = 'https://github.com/vierofernando/python-weather',
download_url = 'https://github.com/vierofernando/python-weather/archive/0.2.1.tar.gz',
download_url = 'https://github.com/vierofernando/python-weather/archive/0.2.2.tar.gz',
keywords = ['Weather', 'API', 'Weather API', 'API Wrapper'],
install_requires=[
'aiohttp',
Expand Down

0 comments on commit 4e83475

Please sign in to comment.