mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
useless line, and handle only ValueError
This commit is contained in:
parent
49e57d36bb
commit
d63b6015ef
@ -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"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user