Hi,

On 10.08.2013 21:03, Eli Carter wrote:
now it's doing an "except Exception", which is a bit broad; should I
narrow that to the SQLite-specific exception for a locked db?  I can
make it fall back to Exception if the import of sqlite fails so those
who use other DBs don't have have to have sqlite installed.

For 1.0-stable and trunk you could use the new "DB-neutral way"[1]:
        try:
            repo.sync()
        except self.env.db_exc.OperationalError, e:
            ...

Depending on what DB is used this catches sqlite.OperationalError, MySQLdb.OperationalError or psycopg.OperationalError.

Peter

[1] http://trac.edgewall.org/ticket/6348

--
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to