diff --git a/cps/isoLanguages.py b/cps/isoLanguages.py index 5190d8b7..0d300ea0 100644 --- a/cps/isoLanguages.py +++ b/cps/isoLanguages.py @@ -11,7 +11,7 @@ except ImportError: import pkg_resources __version__ = pkg_resources.get_distribution('pycountry').version + ' (PyCountry)' del pkg_resources - except: + except (ImportError, Exception): __version__ = "? (PyCountry)" def _copy_fields(l):