def _check_open(result, _func, _args): if result is None: raise lowlevel.OpenSlideUnsupportedFormatError( "Unsupported or missing image file") slide = _TmapSlide(c_void_p(result)) return slide
def _check_open(result, _func, _args): if result is None: raise lowlevel.OpenSlideUnsupportedFormatError( "Unsupported or missing image file") slide = _KfbSlide(c_void_p(result)) # err = get_error(slide) # if err is not None: # raise lowlevel.OpenSlideError(err) return slide