From 0c52ea4f8b1392f45ca3c45d9f4a0ca2326e481a Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 22 Sep 2011 14:55:55 -0400 Subject: make read_seeded return OSError for a file not found --- cloudinit/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit/util.py') diff --git a/cloudinit/util.py b/cloudinit/util.py index 6f9b2374..8f50147d 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -202,9 +202,9 @@ def read_seeded(base="", ext="", timeout=5, retries=10, file_retries=0): except urllib2.HTTPError as e: raise_err = e except urllib2.URLError as e: + raise_err = e if isinstance(e.reason,OSError) and e.reason.errno == errno.ENOENT: raise_err = e.reason - raise_err = e if attempt == retries: break -- cgit v1.2.3