Source

Python Keyring Lib / release.py

Diff from to

File release.py

 	"""
 	Get the repo name from the hgrc default path.
 	"""
-	default = subprocess.check_output('hg paths default')
+	default = subprocess.check_output('hg paths default').strip()
 	parts = default.split('/')
 	if parts[-1] == '':
 		parts.pop()
 			data='name='+version)
 		try:
 			urllib2.urlopen(req)
-		except Exception as e:
+		except urllib2.HTTPError as e:
 			print(e.fp.read())
 
 def bump_versions():