diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2018-07-24 15:21:18 -0400 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2018-07-24 15:21:18 -0400 |
commit | 5d2cde235c9ad17cdc3678ed51e1d693967b5a5a (patch) | |
tree | 44b43fc6aea0b8646e8e313bc475121c73723064 | |
parent | a9f1171d3bd7908fbcfd3df0b7b36c9dd7c4607c (diff) | |
download | markdown-5d2cde235c9ad17cdc3678ed51e1d693967b5a5a.tar.gz markdown-5d2cde235c9ad17cdc3678ed51e1d693967b5a5a.tar.bz2 markdown-5d2cde235c9ad17cdc3678ed51e1d693967b5a5a.zip |
More acurate Extension type error msg.
-rw-r--r-- | markdown/core.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/markdown/core.py b/markdown/core.py index 0fcf71d..4b8d1a6 100644 --- a/markdown/core.py +++ b/markdown/core.py @@ -108,9 +108,11 @@ class Markdown(object): ) elif ext is not None: raise TypeError( - 'Extension "%s.%s" must be of type: "markdown.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 def build_extension(self, ext_name, configs): |