A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

21 行
617 B

  1. # -*- coding: utf-8 -*-
  2. """
  3. EarwigBot's Wiki Toolset: Exceptions
  4. This module contains all exceptions used by the wiki.tools package.
  5. """
  6. class WikiToolsetError(Exception):
  7. """Base exception class for errors in the Wiki Toolset."""
  8. class SiteNotFoundError(WikiToolsetError):
  9. """A site matching the args given to get_site() could not be found in the
  10. config file."""
  11. class NamespaceNotFoundError(WikiToolsetError):
  12. """A requested namespace name or namespace ID does not exist."""
  13. class UserNotFoundError(WikiToolsetError):
  14. """Attempting to get information about a user that does not exist."""