Skip to content

Commit

Permalink
0.1.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
phalt committed Dec 22, 2014
1 parent 619b5ec commit c244fd4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ History
* First release on PyPI.


0.1.2 (214-12-22)
0.1.2 (2014-12-22)
------------------

* Python 3.3 and Python 3.4 compatability


0.1.3 (2014-12-22)
-------------------

* Add "swapi-python" to User-Agent to help with analytics
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name='swapi',
version='0.1.2',
version='0.1.3',
description='A Python helper library for swapi.co - the Star Wars API',
long_description=readme + '\n\n' + history,
author='Paul Hallett',
Expand Down
3 changes: 2 additions & 1 deletion swapi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@


def query(query):
response = requests.get(query)
headers = {'User-Agent': 'swapi-python'}
response = requests.get(query, headers=headers)
if response.status_code != 200:
raise exceptions.ResourceDoesNotExist('Resource does not exist')
return response
Expand Down

0 comments on commit c244fd4

Please sign in to comment.