fixes mypy error:
volumes/fs/operations/versions/__init__.py: note: In member "_load_supported_versions" of class "SubvolumeLoader":
volumes/fs/operations/versions/__init__.py:35: error: Too few arguments for "VolumeException"
Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
self.max_version = cls.version()
self.versions[cls.version()] = cls
if self.max_version == SubvolumeLoader.INVALID_VERSION:
- raise VolumeException("no subvolume version available")
+ raise VolumeException(-errno.EINVAL, "no subvolume version available")
log.info("max subvolume version is v{0}".format(self.max_version))
def _get_subvolume_version(self, version):