Browse Source

Two minor changes

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
ce1e598421
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      README.rst
  2. +1
    -1
      earwigbot/managers.py

+ 2
- 2
README.rst View File

@@ -346,8 +346,8 @@ and the following methods:
object for the given title (sans namespace) object for the given title (sans namespace)
- ``get_user(username)``: returns a ``User`` object for the given username - ``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)``, Create ``Page`` objects with ``site.get_page(title)``,
``page.toggle_talk()``, ``user.get_userpage()``, or ``user.get_talkpage()``. ``page.toggle_talk()``, ``user.get_userpage()``, or ``user.get_talkpage()``.


+ 1
- 1
earwigbot/managers.py View File

@@ -161,7 +161,7 @@ class CommandManager(_ResourceManager):
command.process(data) command.process(data)
except Exception: except Exception:
e = "Error executing command '{0}':" e = "Error executing command '{0}':"
self.logger.exception(e.format(data.command))
self.logger.exception(e.format(command.name))


def call(self, hook, data): def call(self, hook, data):
"""Given a hook type and a Data object, respond appropriately.""" """Given a hook type and a Data object, respond appropriately."""


Loading…
Cancel
Save