From: Jay Freeman (saurik) Date: Mon, 7 Jul 2014 07:33:45 +0000 (+0000) Subject: On production websites, connections are by pipes. X-Git-Url: https://git.saurik.com/cyql.git/commitdiff_plain/ef444e490c9fb118d0aa35f8eca4bcee3b4682d9 On production websites, connections are by pipes. --- 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