we don't have a target_desc when we can't find a factoid
This commit is contained in:
parent
e5fdef6726
commit
5d52ffdb46
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
targets = [["server", event["server"]], ["channel", event["target"]]]
|
targets = [["server", event["server"]], ["channel", event["target"]]]
|
||||||
value = self._get_factoid(targets, factoid)
|
value = self._get_factoid(targets, factoid)
|
||||||
if value == None:
|
if value == None:
|
||||||
raise utils.EventError("Unknown %s factoid '%s'" % factoid)
|
raise utils.EventError("Unknown factoid '%s'" % factoid)
|
||||||
target_desc, value = value
|
target_desc, value = value
|
||||||
event["stdout"].write("%s: %s" % (factoid, value))
|
event["stdout"].write("%s: %s" % (factoid, value))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue