3 ms·
try: ... except (NameError, AttributeError, TypeError): # likely programming error raise except Exception: ... Not pret
by jwilk 10y ago
try:
...
except (NameError, AttributeError, TypeError):
# likely programming error
raise
except Exception:
...
Not pretty, but maybe better than catching every exception.