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.orgReceived 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