How to catch a generic exception?

Boogie El Aceitoso frr149 at telefonica.net
Thu Mar 4 10:23:52 EST 2004


Hi,

How can I catch a generic exception (without knowing a priori what exception
it will be)?

For example, something like this
try:
   generateSomeException()
except e:
  print e





More information about the Python-list mailing list