From ef444e490c9fb118d0aa35f8eca4bcee3b4682d9 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 7 Jul 2014 07:33:45 +0000 Subject: [PATCH] On production websites, connections are by pipes. --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 6e53915..891978a 100644 --- a/__init__.py +++ b/__init__.py @@ -41,7 +41,7 @@ class connect(object): self.driver = psycopg2.connect(**options) break except psycopg2.OperationalError, e: - if e.message.startswith('could not connect to server: Connection refused\n'): + if e.message.startswith('could not connect to server: '): raise ConnectionError() if attempt == 2: raise -- 2.47.2