# -------------------------------------------------------------------------
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]
#