7088: provide a config option to suppress the warning about missing "sdn"

svn: r23205
This commit is contained in:
Paul Franklin
2013-09-26 21:52:24 +00:00
parent 89a7335057
commit ae670af71e
6 changed files with 39 additions and 13 deletions

View File

@ -86,9 +86,11 @@ try:
import pyexiv2
available = True
except:
import logging
logging.warning(_("WARNING: pyexiv2 module not loaded. "
"Image metadata functionality will not be available."))
import config
if not config.get('behavior.ignore-gexiv2'):
import logging
logging.warning(_("WARNING: pyexiv2 module not loaded. "
"Image metadata functionality will not be available."))
available = False
if available: