Skip to content

Commit

Permalink
Fix remaining pylint errors for cassandra_cql.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rallytime committed Mar 30, 2015
1 parent 3c1bb40 commit 10c1dbe
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions salt/modules/cassandra_cql.py
Expand Up @@ -48,11 +48,13 @@

HAS_DRIVER = False
try:
from .cassandra.cluster import Cluster
from .cassandra.cluster import NoHostAvailable
from .cassandra.connection import ConnectionException, ConnectionShutdown
from .cassandra.auth import PlainTextAuthProvider
from .cassandra.query import dict_factory
# pylint: disable=import-error,no-name-in-module
from cassandra.cluster import Cluster
from cassandra.cluster import NoHostAvailable
from cassandra.connection import ConnectionException, ConnectionShutdown
from cassandra.auth import PlainTextAuthProvider
from cassandra.query import dict_factory
# pylint: enable=import-error,no-name-in-module
HAS_DRIVER = True
except ImportError:
pass
Expand Down Expand Up @@ -454,7 +456,7 @@ def create_keyspace(keyspace, replication_strategy='SimpleStrategy', replication
try:
replication_datacenter_map = json.loads(replication_datacenters)
replication_map.update(**replication_datacenter_map)
except BaseException:
except BaseException: # pylint: disable=W0703
log.error("Could not load json replication_datacenters.")
return False
else:
Expand Down

0 comments on commit 10c1dbe

Please sign in to comment.