summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2016-11-11 16:29:55 -0500
committerWaylan Limberg <waylan.limberg@icloud.com>2016-11-11 17:33:39 -0500
commitaeb7a628e9cd8dfe61279e75014e1bb8070db356 (patch)
tree55ac7e328b32212d933260489215848edef8780e
parent22145f3f7ecf8012f915168fcd6b44d8bee976f6 (diff)
downloadpython-markdown-registry.tar.gz
More acurate Extension type error msg.registry
-rw-r--r--markdown/core.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/markdown/core.py b/markdown/core.py
index 7370d8f..e3d0ad2 100644
--- a/markdown/core.py
+++ b/markdown/core.py
@@ -96,8 +96,11 @@ class Markdown(object):
)
elif ext is not None:
raise TypeError(
- 'Extension "%s.%s" must be of type: "markdown.extensions.Extension"'
- % (ext.__class__.__module__, ext.__class__.__name__))
+ 'Extension "%s.%s" must be of type: "%s.%s"' % (
+ ext.__class__.__module__, ext.__class__.__name__,
+ Extension.__module__, Extension.__name__
+ )
+ )
return self