This could be:
```
except (rospy.ServiceException, rospy.exceptions.ROSException) as exc:
```