raises can be a tuple, so you could (instead of catching all exceptions) reasonably catch only the relevant exceptions.