diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2016-11-11 16:29:55 -0500 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2016-11-11 17:33:39 -0500 |
commit | aeb7a628e9cd8dfe61279e75014e1bb8070db356 (patch) | |
tree | 55ac7e328b32212d933260489215848edef8780e /markdown/core.py | |
parent | 22145f3f7ecf8012f915168fcd6b44d8bee976f6 (diff) | |
download | python-markdown-registry.tar.gz |
More acurate Extension type error msg.registry
Diffstat (limited to 'markdown/core.py')
-rw-r--r-- | markdown/core.py | 7 |
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 |