mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 13:42:36 +01:00
String: fix it up to work with the previously committed enhancement for subprocess timeout.
This commit is contained in:
parent
2feaddba08
commit
3e0375812a
@ -139,8 +139,11 @@ class String(callbacks.Plugin):
|
||||
irc.error(s)
|
||||
else:
|
||||
t = self.registryValue('re.timeout')
|
||||
v = commands.process(f, text, timeout=t, pn=self.name(), cn='re')
|
||||
irc.reply(v)
|
||||
try:
|
||||
v = commands.process(f, text, timeout=t, pn=self.name(), cn='re')
|
||||
irc.reply(v)
|
||||
except commands.ProcessTimeoutError, e:
|
||||
irc.error("ProcessTimeoutError: %s" % (e,))
|
||||
re = thread(wrap(re, [first('regexpMatcher', 'regexpReplacer'),
|
||||
'text']))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user