Closed auspex closed 13 years ago
Probably needs to catch a few other exception classes.
Definitely not a very graceful recovery :-)
Yes, I figured there were probably others.
I should find out what happens with a misconfigured connection, too, but for this particular situation, catching the ComponentLookupError seems to do the job. I'll submit a pull request just as soon as I remember how :-)
https://github.com/collective/pas.plugins.sqlalchemy/pull/8 will fix the immediate problem
While using collective.saconnect to configure pas.plugins.sqlalchemy is admirable, it doesn't actually seem workable.
collective.saconnect needs to be correctly configured before almost anything can be done on the site.
I got this from trying to install pps, z3c.saconfig and collective.saconnect at the same time:
And any attempt to look at a Plone page, or even the ZMI, fails with a We’re sorry, but there seems to be an error…
At first glance, it seems that the problem is that the
@graceful_recovery
decorator ... doesn't.I'm going to take a look to see if catching ComponentLookupError as well as SQLAlchemyError would be helpful.