# HG changeset patch # User Beliar # Date 1331147088 -3600 # Node ID 90b2545f7459e7ace64768d8f870dd375ce09179 # Parent c706963ed0c3f504c76ded90b30620e4a0f1bf02 This fixes the director exception when running a command in the console. diff -r c706963ed0c3 -r 90b2545f7459 common/listeners/event_listener.py --- a/common/listeners/event_listener.py Tue Mar 06 15:39:14 2012 +0100 +++ b/common/listeners/event_listener.py Wed Mar 07 20:04:48 2012 +0100 @@ -132,8 +132,10 @@ def onConsoleCommand(self, command): """Called when a console command is executed""" + results = [] for listener in self.listeners["ConsoleCommand"]: - listener.onConsoleCommand(command) + results.append(listener.onConsoleCommand(command)) + return "\n".join(results) def onWidgetAction(self, evt): """Called when a widget action is executed"""