aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2012-06-28 05:55:56 -0400
committerWaylan Limberg <waylan@gmail.com>2012-06-28 05:55:56 -0400
commit9adbb8e4589b19968c9d09d573db00f1d40b61db (patch)
tree7c676a5e778be064bb9aef49c16258ab626e6fc6
parent396daf31cb0dd4a964ccc784f9715e80381138cf (diff)
downloadmarkdown-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__.py2
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__))