useless line, and handle only ValueError

This commit is contained in:
benoitc 2010-03-17 01:10:10 +01:00
parent 49e57d36bb
commit d63b6015ef

View File

@ -42,10 +42,9 @@ def parse_arbiter_uri(uri):
if uri.startswith("egg:"):
# uses entry points
entry_str = uri.split("egg:")[1]
parsed_ept = entry_str.split("#", 1)
try:
dist, name = entry_str.rsplit("#",1)
except:
except ValueError:
dist = entry_str
name = "main"