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."""