Thinko fix.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 25 Aug 2012 13:06:52 +0000 (09:06 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 25 Aug 2012 13:06:52 +0000 (09:06 -0400)
irker.py

index fe2b7437b8bafb2a4e382ea3ae201d8a53570cb2..af0856846c57223f92b417c63ad0b021e3418625 100755 (executable)
--- a/irker.py
+++ b/irker.py
@@ -27,11 +27,7 @@ class Session():
             url = url[6:]
         parts = url.split(":", 1)
         if len(parts) == 2:
-            try:
-                self.port = int(parts[1])
-            except ValueError:
-                print "Error: Erroneous port."
-                sys.exit(1)
+            self.port = int(parts[1])
         else:
             self.port = 6667
         (self.server, self.channel) = parts[0].split("/", 1)