diff options
author | Waylan Limberg <waylan@gmail.com> | 2012-06-28 05:55:56 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2012-06-28 05:55:56 -0400 |
commit | 9adbb8e4589b19968c9d09d573db00f1d40b61db (patch) | |
tree | 7c676a5e778be064bb9aef49c16258ab626e6fc6 | |
parent | 396daf31cb0dd4a964ccc784f9715e80381138cf (diff) | |
download | markdown-9adbb8e4589b19968c9d09d573db00f1d40b61db.tar.gz markdown-9adbb8e4589b19968c9d09d573db00f1d40b61db.tar.bz2 markdown-9adbb8e4589b19968c9d09d573db00f1d40b61db.zip |
Fixed #105. Non-existant extensions fail with a warning only.
-rw-r--r-- | markdown/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/__init__.py b/markdown/__init__.py index a7ee157..3d68d8d 100644 --- a/markdown/__init__.py +++ b/markdown/__init__.py @@ -165,7 +165,7 @@ class Markdown: if isinstance(ext, Extension): # might raise NotImplementedError, but that's the extension author's problem ext.extendMarkdown(self, globals()) - else: + elif ext is not None: raise ValueError('Extension "%s.%s" must be of type: "markdown.Extension".' \ % (ext.__class__.__module__, ext.__class__.__name__)) |