]> git.saurik.com Git - cyql.git/commitdiff
On production websites, connections are by pipes.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 7 Jul 2014 07:33:45 +0000 (07:33 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 7 Jul 2014 07:34:13 +0000 (07:34 +0000)
__init__.py

index 6e53915a73de9443299dee42d256c8cb51236390..891978a9053046b78a0b46046fdcb411bb64a170 100644 (file)
@@ -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