cope when import of GExiv2 gets a ValueError

This commit is contained in:
Paul Franklin 2016-05-09 18:31:07 -07:00
parent 1a05aadca7
commit b308d97bed
2 changed files with 3 additions and 1 deletions

View File

@ -267,6 +267,8 @@ def show_settings():
except ImportError: except ImportError:
gexiv2_str = 'not found' gexiv2_str = 'not found'
except ValueError:
gexiv2_str = 'not new enough'
try: try:
import PyICU import PyICU

View File

@ -390,7 +390,7 @@ try:
available = True available = True
else: else:
available = False available = False
except ImportError: except (ImportError, ValueError):
available = False available = False
if available: if available: