fixes mypy error:
volumes/fs/operations/clone_index.py: note: In member "track" of class "CloneIndex":
volumes/fs/operations/clone_index.py:38: error: Argument 2 to "isinstance" has incompatible type "Union[VolumeException, Any]"; expected "Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]"
Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
except (VolumeException, cephfs.Error) as e:
if isinstance(e, cephfs.Error):
e = IndexException(-e.args[0], e.args[1])
- elif isinstance(VolumeException, e):
+ elif isinstance(e, VolumeException):
e = IndexException(e.errno, e.error_str)
raise e