From: Eric S. Raymond Date: Sat, 25 Aug 2012 13:06:52 +0000 (-0400) Subject: Thinko fix. X-Git-Tag: 1.0~136 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1bede9dae5a7e2686a5c43e37ef50773808f2aea;p=irker.git Thinko fix. --- 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)