Skip to content

Commit 16ad9ee

Browse files
authored
Merge pull request datastax#995 from datastax/python-944_add-profile-name-to-warning
Python 944 add profile name to warning
2 parents 3009ed8 + a184ed6 commit 16ad9ee

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Bug Fixes
88
* Non-ASCII characters in schema break CQL string generation (PYTHON-1008)
99
* Fix OSS driver's virtual table support against DSE 6.0.X and future server releases (PYTHON-1020)
1010
* ResultSet.one() fails if the row_factory is using a generator (PYTHON-1026)
11+
* Log profile name on attempt to create existing profile (PYTHON-944)
1112

1213
Other
1314
-----

cassandra/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ def add_execution_profile(self, name, profile, pool_wait_timeout=5):
10581058
if self._config_mode == _ConfigMode.LEGACY:
10591059
raise ValueError("Cannot add execution profiles when legacy parameters are set explicitly.")
10601060
if name in self.profile_manager.profiles:
1061-
raise ValueError("Profile %s already exists")
1061+
raise ValueError("Profile {} already exists".format(name))
10621062
contact_points_but_no_lbp = (
10631063
self._contact_points_explicit and not
10641064
profile._load_balancing_policy_explicit)

0 commit comments

Comments
 (0)