Author: poeml
Date: Fri Mar 21 13:15:36 2014
New Revision: 8486

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8486&view=rev
Log:
- mb/conn.py:
  - just to be cautious, catch another database error that might be raised when
    the Hash table isn't present (when migrating from very old MirrorBrain
    version 2.12.0)

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=8486&r1=8485&r2=8486&view=diff
==============================================================================
--- trunk/mb/mb/conn.py (original)
+++ trunk/mb/mb/conn.py Fri Mar 21 13:15:36 2014
@@ -241,7 +241,7 @@
                     fromDatabase = True
                     idName = 'file_id'
             self.Hash = Hash
-        except psycopg2.ProgrammingError:
+        except (dberrors.ProgrammingError, psycopg2.ProgrammingError):
             # This is what's raised if the table hasn't been installed yet
             # Which is the case when coming from a 2.12.0 or earlier install
             # XXX This feels like being totally the wrong place for a database 
migration.




_______________________________________________
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

Reply via email to