> Is there a way in python to say, "hey, catch everything but these two"?
>>> try: ... raise AttributeError ... except Exception, ex: ... if isinstance(ex, AttributeError): ... print "Won't catch it!" ... raise ex ... Won't catch it! Traceback (most recent call last): File "<stdin>", line 7, in ? AttributeError Or that sort of thing. -- http://mail.python.org/mailman/listinfo/python-list