Skip to content

Commit

Permalink
Better message on library not available status
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Dec 5, 2018
1 parent bd1fcc8 commit 67ddd88
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/quorum/amazon.py
Expand Up @@ -102,7 +102,7 @@ def delete_key(name):
def _boto(verify = True):
if verify: util.verify(
not boto == None,
message = "boto library not available",
message = "Boto library not available",
exception = exceptions.OperationalError
)
return boto
2 changes: 1 addition & 1 deletion src/quorum/amqp.py
Expand Up @@ -86,7 +86,7 @@ def disconnect():
def _pika(verify = True):
if verify: util.verify(
not pika == None,
message = "pika library not available",
message = "Pika library not available",
exception = exceptions.OperationalError
)
return pika
2 changes: 1 addition & 1 deletion src/quorum/mongodb.py
Expand Up @@ -209,7 +209,7 @@ def _reset_connection():
def _pymongo(verify = True):
if verify: util.verify(
not pymongo == None,
message = "pymongo library not available",
message = "PyMongo library not available",
exception = exceptions.OperationalError
)
return pymongo
2 changes: 1 addition & 1 deletion src/quorum/pusherc.py
Expand Up @@ -82,7 +82,7 @@ def get_pusher():
def _pusher(verify = True):
if verify: util.verify(
not pusher == None,
message = "pusher library not available",
message = "Pusher library not available",
exception = exceptions.OperationalError
)
return pusher
2 changes: 1 addition & 1 deletion src/quorum/redisdb.py
Expand Up @@ -152,7 +152,7 @@ def _get_connection(url):
def _redis(verify = True):
if verify: util.verify(
not redis == None,
message = "redis library not available",
message = "RedisPy library not available",
exception = exceptions.OperationalError
)
return redis

0 comments on commit 67ddd88

Please sign in to comment.