This function is now unused as we no longer need to coerce exceptions
into response tuples at the layer in the code.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
List,
Any,
Dict,
- Tuple,
Optional,
TYPE_CHECKING,
TypeVar,
return clusters
-def exception_handler(
- exception_obj: Exception,
- log_msg: str = ""
-) -> Tuple[int, str, str]:
- if log_msg:
- log.exception(log_msg)
- return getattr(exception_obj, 'errno', -1), "", str(exception_obj)
-
-
def _check_rados_notify(ioctx: Any, obj: str) -> None:
try:
ioctx.notify(obj)