Commits

Jason R. Coombs  committed a3dd281

Add Python 3 compatibility

  • Participants
  • Parent commits 5806d36

Comments (0)

Files changed (1)

File scripts/irccat.py

     client = irc.client.IRC()
     try:
         c = client.server().connect(args.server, args.port, args.nickname)
-    except irc.client.ServerConnectionError, x:
-        print x
+    except irc.client.ServerConnectionError:
+        print(sys.exc_info()[1])
         raise SystemExit(1)
 
     c.add_global_handler("welcome", on_connect)