Skip to content

Commit 535e4b0

Browse files
author
James William Pye
committed
Label the failures as attempts and remove the ticks around sslmode.
1 parent 5874c27 commit 535e4b0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

postgresql/driver/pq3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2361,7 +2361,7 @@ def connect(self, timeout = None):
23612361
if not supported and sslmode == 'require':
23622362
# ssl is required..
23632363
raise pg_exc.InsecurityError(
2364-
"`sslmode` required a secure connection, " \
2364+
"sslmode required a secure connection, " \
23652365
"but was unsupported by server",
23662366
source = 'CLIENT'
23672367
)

postgresql/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def ife_snapshot_text(self):
190190
bottom = ""
191191
if self.connection_failures:
192192
count = 0
193-
bottom = 'FAILURES: count of ' + \
193+
bottom = 'ATTEMPTS: count of ' + \
194194
str(len(self.connection_failures))
195195
for x in self.connection_failures:
196196
count += 1

0 commit comments

Comments
 (0)