Skip to content

Commit 3c01319

Browse files
committed
Fixed bad references to exceptions in v1 client.
1 parent e37118f commit 3c01319

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
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.36'
62+
version = '3.37'
6363
# The full version, including alpha/beta/rc tags.
64-
release = '3.36'
64+
release = '3.37'
6565

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

dropbox/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@ def finish(self, query_params):
15641564
# Check CSRF token
15651565

15661566
if self.csrf_token_session_key not in self.session:
1567-
raise self.BadStateError("Missing CSRF token in session.")
1567+
raise self.BadStateException("Missing CSRF token in session.")
15681568
csrf_token_from_session = self.session[self.csrf_token_session_key]
15691569
if len(csrf_token_from_session) <= 20:
15701570
raise AssertionError("CSRF token unexpectedly short: %r" % (csrf_token_from_session,))
@@ -1598,7 +1598,7 @@ def finish(self, query_params):
15981598
full_message = error
15991599
if error_description is not None:
16001600
full_message += ": " + error_description
1601-
raise self.ProviderError(full_message)
1601+
raise self.ProviderException(full_message)
16021602

16031603
# If everything went ok, make the network call to get an access token.
16041604

dropbox/dropbox.py

Lines changed: 1 addition & 1 deletion
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.36'
6+
__version__ = '3.37'
77

88
import contextlib
99
import json

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.36"
34+
SDK_VERSION = "3.37"
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.36',
28+
version='3.37',
2929
description='Official Dropbox API Client',
3030
author='Dropbox',
3131
author_email='dev-platform@dropbox.com',

0 commit comments

Comments
 (0)