Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#107 can't catch MySQLdb.Warning with v.1.1.5

MySQLdb-1.1
closed
Andy Dustman
MySQLdb (285)
5
2012-09-19
2004-09-30
Den Ivanov
No

try:
...
except MySQLdb.Warning:
pass

work with MySQLdb 0.9, but not working with 1.1.5.

Maybe _mysql_exceptions must be imported in your
init.py?

Discussion

  • Andy Dustman
    Andy Dustman
    2004-09-30

    Logged In: YES
    user_id=71372

    This is one of the new features of 1.1: It no longer raises
    Warning but instead uses the Python warnings module. This is
    in the ChangeLog but needs to be documented better. One of
    the things I plan to do prior to 1.2 is redo all the
    documentation in reStructuredText.

     
  • Logged In: NO

    How do I catch a warning?