[mirrorbrain-commits] r8296 - /trunk/mb/mb/conn.py

From: <poeml_at_mirrorbrain.org>
Date: Mon, 18 Jun 2012 22:11:03 -0000
Author: poeml
Date: Tue Jun 19 00:11:03 2012
New Revision: 8296

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8296&view=rev
Log:
mb:
- when mod_asn is not installed, an additional ProgrammingError
  exception from the sqlobject.dberrors can occur. This is now also
  caught. Thanks Gökdeniz very much for the patch!

Modified:
    trunk/mb/mb/conn.py

Modified: trunk/mb/mb/conn.py
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mb/mb/conn.py?rev=8296&r1=8295&r2=8296&view=diff
==============================================================================
--- trunk/mb/mb/conn.py	(original)
+++ trunk/mb/mb/conn.py	Tue Jun 19 00:11:03 2012
_at_@ -188,7 +188,7 @@
                     fromDatabase = True
                     defaultOrder = 'asn'
             self.Pfx2asn = Pfx2asn
-        except psycopg2.ProgrammingError:
+        except (dberrors.ProgrammingError, psycopg2.ProgrammingError):
             # this is the error which we get if mod_asn doesn't happen
             # to be installed as well
             pass




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Mon Jun 18 2012 - 22:11:04 GMT

This archive was generated by hypermail 2.3.0 : Mon Jun 18 2012 - 22:17:03 GMT