Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added support for requests >= 1.0

  • Loading branch information...
commit 984a0922368d3f04bd302dea5228f7f9467b8722 1 parent 2016fd0
@ahmontero authored
Showing with 5 additions and 5 deletions.
  1. +2 −2 dop/__init__.py
  2. +2 −2 dop/client.py
  3. +1 −1  setup.py
View
4 dop/__init__.py
@@ -20,8 +20,8 @@
"""
__title__ = 'dop'
-__version__ = '01.2'
-__build__ = 0x000102
+__version__ = '01.3'
+__build__ = 0x000103
__author__ = 'Antonio Hinojo'
__license__ = 'MIT'
View
4 dop/client.py
@@ -353,8 +353,8 @@ def request(self, target, method='GET', params={}):
response = requests.get(url, headers=headers, params=params)
if response.status_code == 200:
- if response.json:
- json = response.json
+ if response.json():
+ json = response.json()
error_msg = json.get('error_message', None)
if error_msg:
raise DOPException(error_msg)
View
2  setup.py
@@ -17,7 +17,7 @@
description="A Python client for the Digital Ocean API",
packages=["dop"],
install_requires=[
- 'requests==0.14.2',
+ 'requests >= 1.0.0',
],
classifiers=(
'Development Status :: 4 - Beta',
Please sign in to comment.
Something went wrong with that request. Please try again.