[tor-commits] [bridgedb/master] Remove an unexecuted `except` branch from addr.PortList.add().

isis at torproject.org isis at torproject.org
Sun Jan 12 06:06:33 UTC 2014


commit aaa053993ac49b2420d01290ea068e6894273f65
Author: Isis Lovecruft <isis at torproject.org>
Date:   Sat Dec 7 04:44:44 2013 +0000

    Remove an unexecuted `except` branch from addr.PortList.add().
---
 lib/bridgedb/parse/addr.py |    2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/bridgedb/parse/addr.py b/lib/bridgedb/parse/addr.py
index 6d72e21..0c50934 100644
--- a/lib/bridgedb/parse/addr.py
+++ b/lib/bridgedb/parse/addr.py
@@ -338,8 +338,6 @@ class PortList(object):
                     self.add(list(arg.ports))
             except ValueError:
                 raise InvalidPort("%s is not a valid port number!" % arg)
-            except InvalidPort:
-                raise
 
             self.ports.update(set(portlist))
 





More information about the tor-commits mailing list