Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix urllib2.HTTPError excepts

  • Loading branch information...
commit b88951c91f2e6b1bd9ff4b7d206fa01772a68de8 1 parent 3d51831
@gapan authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/sourcery
View
4 src/sourcery
@@ -334,7 +334,7 @@ class Sourcery:
for i in slackdescfull:
if i.startswith(pkg+':'):
slackdesc.append(i.partition(pkg+':')[2])
- except urllib2.httperror:
+ except urllib2.HTTPError:
slackdesc = None
else:
slackdesc = None
@@ -345,7 +345,7 @@ class Sourcery:
try:
f = urllib2.urlopen(sourceurl+location+'README')
readme = f.read().splitlines()
- except urllib2.httperror:
+ except urllib2.HTTPError:
readme = None
else:
readme = None
Please sign in to comment.
Something went wrong with that request. Please try again.