From 2009dafafeb50f1a86401e1b756ee928876ba913 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 26 Feb 2019 16:15:27 +0100 Subject: [PATCH] Bugfixing in lib/webhooks/get_forge_modules.py --- lib/webhooks/get_forge_modules.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/webhooks/get_forge_modules.py b/lib/webhooks/get_forge_modules.py index 41e1fcf..f14c2fa 100644 --- a/lib/webhooks/get_forge_modules.py +++ b/lib/webhooks/get_forge_modules.py @@ -262,12 +262,15 @@ class GetForgeModulesApp(BaseHookApp): # ------------------------------------------------------------------------- def get_forge_module_info(self, full_name): - release_info = ForgeModuleInfo.get_from_forge( + module_info = ForgeModuleInfo.get_from_forge( full_name, forge_uri=self.forge_uri, http_timeout=self.http_timeout, appname=self.appname, verbose=self.verbose, base_dir=self.base_dir, ) - if self.verbose > 2: - LOG.debug(_("Got module info from Forge:") + '\n' + pp(release_info.as_dict())) + if module_info: + if self.verbose > 2: + LOG.debug(_("Got module info from Forge:") + '\n' + pp(module_info.as_dict())) + else: + LOG.warn(_("Got no module info for {!r} from Forge.").format(full_name)) # module_info = self.modules[full_name] # -- 2.39.5