18try:
19 import urllib2
20▶ from urllib2 import HTTPError
21except ImportError:
22 import urllib.request as urllib2
· · ·
21▶except ImportError:
22 import urllib.request as urllib2
23 from urllib.error import HTTPError
· · ·
23▶ from urllib.error import HTTPError
24try:
25 import typing # noqa: F401 FIXME: py2
· · ·
26▶except ImportError:
27 pass
28
· · ·
217 github_token,
218 )
219▶ except HTTPError as e:
220 # network errors will simply end up not creating an issue, but that's better
221 # than failing the entire build job
+ 7 more matches in this file