Permalink
Browse files

Removed unneeded else from try except.

  • Loading branch information...
1 parent fcec395 commit 95105f5987027ed88e9ff1035cf4a65c82dc47ec Jukka Ojaniemi committed Oct 16, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/buildout/sendpickedversions/__init__.py
@@ -69,15 +69,13 @@ def logging_shutdown():
def send_picked_versions_data(whiskers_url, data):
req = urllib2.Request(url=whiskers_url, data=urllib.urlencode({'data':data}))
try:
- h = urllib2.urlopen(req, timeout=5)
+ h = urllib2.urlopen(req, timeout=20)
except TypeError, e:
# python2.4 doesn't support timeout
h = urllib2.urlopen(req)
except urllib2.URLError, e:
print str(e)
return None
- else:
- h = None
return h.msg or None
def install(buildout):

0 comments on commit 95105f5

Please sign in to comment.