]> git.saurik.com Git - cyql.git/blobdiff - __init__.py
Catch the right exception class.
[cyql.git] / __init__.py
index 9dc57b361c695ce098736d5582c0d00a47c0da13..2123108be94ca098a7b8ce6d776625b146965a2f 100644 (file)
@@ -37,7 +37,7 @@ class connect(object):
 
         try:
             psycopg2.extras.register_hstore(self.driver, globally=False, unicode=True)
-        except ProgrammingError, e:
+        except psycopg2.ProgrammingError, e:
             pass
 
     def close(self):