Found with pylint. Fixed by importing exception class HTTPError from module urllib2
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
lnst/Common/RecipePath.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Common/RecipePath.py b/lnst/Common/RecipePath.py
index b976238..3199a1a 100644
--- a/lnst/Common/RecipePath.py
+++ b/lnst/Common/RecipePath.py
@@ -12,7 +12,7 @@ jtluka(a)redhat.com (Jan Tluka)
import os
from urlparse import urljoin
-from urllib2 import urlopen
+from urllib2 import urlopen, HTTPError
from tempfile import NamedTemporaryFile
def get_recipepath_class(root, path):
--
2.1.0