Exception is somewhat broad, and also catches `MemoryError`s et al. Which exceptions do we expect here? Also, `except ExceptionType as e` is more readable and future-proof.