cope when import of GExiv2 gets a ValueError
This commit is contained in:
parent
1a05aadca7
commit
b308d97bed
@ -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
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user