[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Remove an unexecuted `except` branch from addr.PortList.add().
commit aaa053993ac49b2420d01290ea068e6894273f65
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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))
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits