diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-11-14 17:10:24 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2012-11-14 17:10:54 +0000 |
commit | f51c7b9cd378a561a9926d0860c26b7581dd4dc0 (patch) | |
tree | 9529cf2d604069e5b7877dd8a7440ad66833a308 /tests | |
parent | 903885187ef029ef6a954f2dd338d5348ef5e307 (diff) |
idletest: handle PART with no message argument
Diffstat (limited to 'tests')
-rw-r--r-- | tests/twisted/idletest.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/twisted/idletest.py b/tests/twisted/idletest.py index 6325cf8..13251a6 100644 --- a/tests/twisted/idletest.py +++ b/tests/twisted/idletest.py @@ -102,7 +102,13 @@ class BaseIRCServer(irc.IRC): self.rooms.remove(room) except ValueError: pass - self.sendPart(room, self.nick, args[1]) + + try: + message = args[1] + except IndexError: + message = None + + self.sendPart(room, self.nick, message) def sendJoin(self, room, members=[]): members.append(self.nick) |