You can just use `except (ValueError, TypeError):`