fix error message when no OpenJPEG library can be found, closes #284
This commit is contained in:
parent
1211c83df2
commit
ad42363586
1 changed files with 3 additions and 3 deletions
|
|
@ -94,9 +94,9 @@ def load_library_handle(path):
|
||||||
else:
|
else:
|
||||||
opj_lib = ctypes.CDLL(path)
|
opj_lib = ctypes.CDLL(path)
|
||||||
except (TypeError, OSError):
|
except (TypeError, OSError):
|
||||||
msg = '"Library {0}" could not be loaded. Operating in degraded mode.'
|
msg = 'The library specified by configuration file at {0} could not be '
|
||||||
msg = msg.format(path)
|
msg += 'loaded.'
|
||||||
warnings.warn(msg, UserWarning)
|
warnings.warn(msg.format(path), UserWarning)
|
||||||
opj_lib = None
|
opj_lib = None
|
||||||
|
|
||||||
return opj_lib
|
return opj_lib
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue