From: Frank Brehm Date: Tue, 26 Feb 2019 15:15:27 +0000 (+0100) Subject: Bugfixing in lib/webhooks/get_forge_modules.py X-Git-Tag: 1.6.4^2~47 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=2009dafafeb50f1a86401e1b756ee928876ba913;p=pixelpark%2Fpuppetmaster-webhooks.git Bugfixing in lib/webhooks/get_forge_modules.py --- 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] #