cope when import of GExiv2 gets a ValueError
This commit is contained in:
1 parent
1a05aadca7
commit
b308d97bed
2 files changed
+3
-1
No files matched your search
@@ -267,6 +267,8 @@ def show_settings():
|
||||
|
||||
except ImportError:
|
||||
gexiv2_str = 'not found'
|
||||
except ValueError:
|
||||
gexiv2_str = 'not new enough'
|
||||
|
||||
try:
|
||||
import PyICU
|
||||
|
||||
@@ -390,7 +390,7 @@ try:
|
||||
available = True
|
||||
else:
|
||||
available = False
|
||||
except ImportError:
|
||||
except (ImportError, ValueError):
|
||||
available = False
|
||||
|
||||
if available:
|
||||
|
||||
Reference in new issue
Block a user