From a3afe527594db525bec9536b94ba8530fddb9b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Dlouh=C3=BD?= Date: Thu, 1 Dec 2016 16:25:13 +0100 Subject: [PATCH] fix Travis tests --- linkcheck/configuration/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkcheck/configuration/__init__.py b/linkcheck/configuration/__init__.py index fc2c148a4..189fd9049 100644 --- a/linkcheck/configuration/__init__.py +++ b/linkcheck/configuration/__init__.py @@ -81,7 +81,7 @@ def get_modules_info(): for (mod, name, version_attr) in Modules: if not fileutil.has_module(mod): continue - if hasattr(mod, version_attr): + if version_attr and hasattr(mod, version_attr): attr = getattr(mod, version_attr) version = attr() if callable(attr) else attr module_infos.append("%s %s" % (name, version))