Added broad except clause