From 1bede9dae5a7e2686a5c43e37ef50773808f2aea Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 25 Aug 2012 09:06:52 -0400 Subject: [PATCH] Thinko fix. --- irker.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/irker.py b/irker.py index fe2b743..af08568 100755 --- 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) -- 2.26.2