[PATCH 1/3] Hook up jenkins support into makebumpver.
Brian C. Lane
bcl at redhat.com
Fri Jan 16 17:52:17 UTC 2015
On Fri, Jan 16, 2015 at 12:24:16PM -0500, Chris Lumens wrote:
> + with closing(urllib.urlopen(self.jenkins)) as f:
> + contents = f.readlines()
> +
> + j = json.loads(contents[0])
> +
This should be wrapped with except (TypeError, ValueError) to catch
problems with the data.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
More information about the anaconda-patches
mailing list