diff --git a/xbatcher/util/print_versions.py b/xbatcher/util/print_versions.py index bbd0bea..6abe283 100644 --- a/xbatcher/util/print_versions.py +++ b/xbatcher/util/print_versions.py @@ -26,10 +26,7 @@ def _get_module_version(modname): else: module = importlib.import_module(modname) - try: - return module.__version__ - except AttributeError: - return module.version + return getattr(module, '__version__', 'installed') except ImportError: return None