Bob wrote:
> Here's the code that did not work:
>
> import _mysql_exceptions
> from _mysql_exceptions import OperationalError
>
> try:
> database_code()
> except (_mysql_exceptions.OperationalError, OperationalError), e:
> error_handling()
Both of the above forms work fine here, as does using
M
Bob wrote:
> In our database code (we are using django v0.96) we wanted to catch
> and handle MySQL OperationalErrors. We use both the Django models and
> database connections.
>
> However, even though we confirmed that a
> _mysql_exceptions.OperationalError are raised (particularly 1213
> deadlo