In Python 2, are all exceptions that raise d may be necessary to inherit from Exception?
That is, enough to catch any possible exception:
try: code() except Exception as e: pass
or do I need something even more general, like
try: code() except: pass
source share