No need to explicitly touch the (no-longer-existing)
load_libcephfs method during module load, as with
the cython version we already get an ImportError
if the C library is unavailable.
Signed-off-by: John Spray <john.spray@redhat.com>
import cephfs
from ceph_argparse import json_command
-# Generate missing lib errors at load time, rather than the
-# first time someone tries to use the FS
-try:
- cephfs.load_libcephfs()
-except EnvironmentError as e:
- raise ImportError(e.__str__())
-
class RadosError(Exception):
"""