Catching a generic `Exception` is poor practice.