Albert Lukaszewski

Citações

DDaudalagidfez uma citaçãohá 2 anos
except MySQLdb.Error, e:
print "An error has been passed. %s" %e
DDaudalagidfez uma citaçãohá 2 anos
For exceptions see:
http://python.about.com/od/pythonstandardlibrary/a/lib_exceptions.htm
For warnings visit:
http://python.about.com/od/pythonstandardlibrary/a/lib_warnings.htm
The Python documentation also covers them at:
http://docs.python.org/library/exceptions.html

References

DDaudalagidfez uma citaçãohá 2 anos
Each of the previous types can be caught with the DatabaseError type. However, catching them separately allows you to customize responses. For example, you may want the application to fail softly for the user when a ProgrammingError is raised but nonetheless want the exception to be reported to the development team. You can do that with customized exception handling.
fb2epub
Arraste e solte seus arquivos (não mais do que 5 por vez)