diff --git a/fusesoc/provider/github.py b/fusesoc/provider/github.py
index <HASH>..<HASH> 100644
--- a/fusesoc/provider/github.py
+++ b/fusesoc/provider/github.py
@@ -7,10 +7,11 @@ import tarfile
 
 if sys.version_info[0] >= 3:
     import urllib.request as urllib
+    from urllib.error import URLError
 else:
     import urllib
+    from urllib2 import URLError
 
-from urllib.error import URLError
 
 class GitHub(object):
     def __init__(self, core_name, config, core_root, cache_root):
github.py: Fix import of URLError for python 2

URLError lives in another lib in python 2.
Problem found and fixed by Bruno Morais