mirror of
https://github.com/sprockets/sprockets.clients.dynamodb.git
synced 2024-11-23 19:29:51 +00:00
Insert an exception stub for Python 2.7
This commit is contained in:
parent
33adf14265
commit
1ab58a01be
2 changed files with 14 additions and 0 deletions
|
@ -10,6 +10,13 @@ from tornado_aws import exceptions as aws_exceptions
|
||||||
from . import utils
|
from . import utils
|
||||||
from . import exceptions
|
from . import exceptions
|
||||||
|
|
||||||
|
# Stub ConnectionError for Python 2.7 that doesn't support it
|
||||||
|
try:
|
||||||
|
ConnectionError
|
||||||
|
except NameError:
|
||||||
|
class ConnectionError(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,13 @@ from tornado_aws import exceptions as aws_exceptions
|
||||||
from sprockets.clients import dynamodb
|
from sprockets.clients import dynamodb
|
||||||
from sprockets.clients.dynamodb import exceptions
|
from sprockets.clients.dynamodb import exceptions
|
||||||
|
|
||||||
|
# Stub ConnectionError for Python 2.7 that doesn't support it
|
||||||
|
try:
|
||||||
|
ConnectionError
|
||||||
|
except NameError:
|
||||||
|
class ConnectionError(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class AsyncTestCase(testing.AsyncTestCase):
|
class AsyncTestCase(testing.AsyncTestCase):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue