fix exception block
This commit is contained in:
parent
4571b6dce7
commit
b0e19aa9fb
1 changed files with 7 additions and 2 deletions
7
irc.py
7
irc.py
|
@ -543,8 +543,13 @@ class PesterHandler(DefaultCommandHandler):
|
||||||
|
|
||||||
# Server-set usermodes don't need to be passed.
|
# Server-set usermodes don't need to be passed.
|
||||||
if (handles == ['']) & ( ('x' in m) | ('z' in m) | ('o' in m) | ('x' in m) )!=True:
|
if (handles == ['']) & ( ('x' in m) | ('z' in m) | ('o' in m) | ('x' in m) )!=True:
|
||||||
|
try:
|
||||||
self.parent.userPresentUpdate.emit(handles[i], channel, m+":%s" % (op))
|
self.parent.userPresentUpdate.emit(handles[i], channel, m+":%s" % (op))
|
||||||
|
except IndexError as e:
|
||||||
|
PchumLog.exception("modeSetIndexError: %s" % e)
|
||||||
|
#print("i = " + i)
|
||||||
|
#print("m = " + m)
|
||||||
|
#self.parent.userPresentUpdate.emit(handles[i], channel, m+":%s" % (op))
|
||||||
#self.parent.userPresentUpdate.emit(handles[i], channel, m+":%s" % (op))
|
#self.parent.userPresentUpdate.emit(handles[i], channel, m+":%s" % (op))
|
||||||
# Passing an empty handle here might cause a crash.
|
# Passing an empty handle here might cause a crash.
|
||||||
#except IndexError:
|
#except IndexError:
|
||||||
|
|
Loading…
Reference in a new issue