From 3027147aaf2894a3e4293d67277fd9b1b4bea119 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 25 Dec 2011 21:41:34 +0000 Subject: [PATCH] Pass-through exception instead of re-raising. --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 2a4f7a5..bc20529 100644 --- a/__init__.py +++ b/__init__.py @@ -26,7 +26,7 @@ class connect(object): break except psycopg2.OperationalError, e: if attempt == 2: - raise e + raise attempt = attempt + 1 self.driver.autocommit = True -- 2.47.2