From ea021f7ca4c68314ef0073459b3df248e2d14d17 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Sat, 7 May 2022 10:24:01 -0400 Subject: [PATCH] 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 --- src/pybind/mgr/nfs/export.py | 10 ---------- 1 file changed, 10 deletions(-) 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) -- 2.47.3