Skip to content

Commit 0c887f6

Browse files
committed
Read error type from error key in JSON instead of reason.
- Bump to 3.24.
1 parent d8e6aa6 commit 0c887f6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
# built documents.
6060
#
6161
# The short X.Y version.
62-
version = '3.23'
62+
version = '3.24'
6363
# The full version, including alpha/beta/rc tags.
64-
release = '3.23'
64+
release = '3.24'
6565

6666
# The language for content autogenerated by Sphinx. Refer to documentation
6767
# for a list of supported languages.

dropbox/dropbox.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
]
44

55
# TODO(kelkabany): We need to auto populate this as done in the v1 SDK.
6-
__version__ = '3.23'
6+
__version__ = '3.24'
77

88
import json
99
import logging
@@ -165,7 +165,7 @@ def request(self,
165165
obj = decoded_obj_result
166166
elif isinstance(res, RouteErrorResult):
167167
returned_data_type = error_data_type
168-
obj = decoded_obj_result['reason']
168+
obj = decoded_obj_result['error']
169169
else:
170170
raise AssertionError('Expected RouteResult or RouteErrorResult, '
171171
'but res is %s' % type(res))

dropbox/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
else:
3232
url_encode = urllib.urlencode
3333

34-
SDK_VERSION = "3.23"
34+
SDK_VERSION = "3.24"
3535

3636
TRUSTED_CERT_FILE = pkg_resources.resource_filename(__name__, 'trusted-certs.crt')
3737

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
dist = setup(
2727
name='dropbox',
28-
version='3.23',
28+
version='3.24',
2929
description='Official Dropbox API Client',
3030
author='Dropbox',
3131
author_email='dev-platform@dropbox.com',

0 commit comments

Comments
 (0)