From ce1e598421f7d8b380d6d8c7d6f89de4478d5846 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 5 May 2012 15:09:24 -0400 Subject: [PATCH] Two minor changes --- README.rst | 4 ++-- earwigbot/managers.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index cafdc9f..65f5d37 100644 --- a/README.rst +++ b/README.rst @@ -346,8 +346,8 @@ and the following methods: object for the given title (sans namespace) - ``get_user(username)``: returns a ``User`` object for the given username -Pages (and Categories) -~~~~~~~~~~~~~~~~~~~~~~ +Pages and categories +~~~~~~~~~~~~~~~~~~~~ Create ``Page`` objects with ``site.get_page(title)``, ``page.toggle_talk()``, ``user.get_userpage()``, or ``user.get_talkpage()``. diff --git a/earwigbot/managers.py b/earwigbot/managers.py index 7610ca7..9cee6b8 100644 --- a/earwigbot/managers.py +++ b/earwigbot/managers.py @@ -161,7 +161,7 @@ class CommandManager(_ResourceManager): command.process(data) except Exception: e = "Error executing command '{0}':" - self.logger.exception(e.format(data.command)) + self.logger.exception(e.format(command.name)) def call(self, hook, data): """Given a hook type and a Data object, respond appropriately."""