From 9adbb8e4589b19968c9d09d573db00f1d40b61db Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 28 Jun 2012 05:55:56 -0400 Subject: Fixed #105. Non-existant extensions fail with a warning only. --- markdown/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__)) -- cgit v1.2.3