mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
sphinx.application.Sphinx.add_search_language raises AssertionError for correct type of argument. Closes #1563
This commit is contained in:
parent
294c83d8f0
commit
7b9c9586bd
6
CHANGES
6
CHANGES
@ -1,6 +1,12 @@
|
||||
Release 1.2.4 (in development)
|
||||
==============================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #1563: :meth:`~sphinx.application.Sphinx.add_search_language` raises
|
||||
AssertionError for correct type of argument. Thanks to rikoman.
|
||||
|
||||
|
||||
Release 1.2.3 (released Sep 1, 2014)
|
||||
====================================
|
||||
|
@ -615,7 +615,7 @@ class Sphinx(object):
|
||||
def add_search_language(self, cls):
|
||||
self.debug('[app] adding search language: %r', cls)
|
||||
from sphinx.search import languages, SearchLanguage
|
||||
assert isinstance(cls, SearchLanguage)
|
||||
assert issubclass(cls, SearchLanguage)
|
||||
languages[cls.lang] = cls
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user