From: John Mulligan Date: Sat, 7 May 2022 14:24:01 +0000 (-0400) Subject: mgr/nfs: remove unused exception_handler function X-Git-Tag: v18.1.0~491^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ea021f7ca4c68314ef0073459b3df248e2d14d17;p=ceph.git mgr/nfs: remove unused exception_handler function 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 --- diff --git a/src/pybind/mgr/nfs/export.py b/src/pybind/mgr/nfs/export.py index 2dbd35cac20f..0496f9ed80f1 100644 --- a/src/pybind/mgr/nfs/export.py +++ b/src/pybind/mgr/nfs/export.py @@ -5,7 +5,6 @@ from typing import ( List, Any, Dict, - Tuple, Optional, TYPE_CHECKING, TypeVar, @@ -56,15 +55,6 @@ def known_cluster_ids(mgr: 'Module') -> Set[str]: 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)