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 @@ -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-requ...@mirrorbrain.org