try: doSomething() except Exception: pass
try: doSomething() except: pass
The difference is that the second one will also catch
SystemExit and stuff like that, which are derived directly from
See documentation for details:
However, it is generally bad practice to catch every error – see Why is “except: pass” a bad programming practice?