def get_info(self, prj, pkg=None):
"""Get info dictionary, saved in description."""
- description = self.get_description(prj, pkg)
- if not description: return {}
- try:
- return json.loads(description)
- except ValueError:
- return {}
+ for count in (1, 2, 3):
+ description = self.get_description(prj, pkg)
+ if not description: continue
+ try:
+ return json.loads(description)
+ except ValueError:
+ continue
+ return {}
def cleanup(self, obs_project, msg):
"""Remove prerelease OBS project."""