From d63b6015ef08afe12b2093cd39b86f8962dea506 Mon Sep 17 00:00:00 2001 From: benoitc Date: Wed, 17 Mar 2010 01:10:10 +0100 Subject: [PATCH] useless line, and handle only ValueError --- gunicorn/util.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gunicorn/util.py b/gunicorn/util.py index 9850c773..3ce59ed2 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -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"