self.command = command
def __str__(self):
- return ' '.join(self.command)
+ return 'Command not found: "%s"' % ' '.join(self.command)
class CommandNotFoundError(Error):
r"""
raise CommandNotFoundError(command)
handler = getattr(handler, route[0])
route = route[1:]
- handler(*route)
+ return handler(*route)
if __name__ == '__main__':