Add a missing print after catching an exception.