Problem loading missing files
Created by: guillaume-heusch
Hi Guys,
I'm having some troubles to "catch" errors when trying to load files that don't exist. Here's the code I'm using - and it was working fine until last week:
try:
color = bob.io.base.load(illum_file)
except (IOError, RuntimeError) as e:
logger.warn("Skipping file `%s' (no color signals file available)", obj.stem)
continue
Now when I'm running it, I get this error:
terminate called after throwing an instance of 'std::runtime_error' what(): cannot open file `bla-bla-bla.hdf5' Aborted
Of course, I'm able to correct that by a simple test using os.path.isfile(), but I'm wondering what's going on here.
Thanks Guillaume