diff --git a/LICENSE b/LICENSE index 9ccb0e7..7dcf161 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2016 Josh Sherman +Copyright (c) 2016, 2017, 2018, 2019 Gravity Boulevard, LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 57ae394..65eaaaa 100644 --- a/README.md +++ b/README.md @@ -15,16 +15,16 @@ import holidayapi hapi = holidayapi.v1('_YOUR_API_KEY_') parameters = { - # Required - 'country': 'US', - 'year': 2016, - # Optional - # 'month': 7, - # 'day': 4, - # 'previous': True, - # 'upcoming': True, - # 'public': True, - # 'pretty': True, + # Required + 'country': 'US', + 'year': 2016, + # Optional + # 'month': 7, + # 'day': 4, + # 'previous': True, + # 'upcoming': True, + # 'public': True, + # 'pretty': True, } holidays = hapi.holidays(parameters) diff --git a/holidayapi/__init__.py b/holidayapi/__init__.py index 7bcf139..e931898 100644 --- a/holidayapi/__init__.py +++ b/holidayapi/__init__.py @@ -15,7 +15,7 @@ class v1: response = requests.get(url, params=parameters); data = response.json() - + if not response.ok: if not data.get('error'): data['error'] = 'Unknown error.' diff --git a/setup.py b/setup.py index dee550e..121db30 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='python-holidayapi', - version='1.0.0', + version='1.1.0', description='Official Python library for Holiday API', url='https://holidayapi.com', author='Josh Sherman',