From 5d2cde235c9ad17cdc3678ed51e1d693967b5a5a Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Tue, 24 Jul 2018 15:21:18 -0400 Subject: More acurate Extension type error msg. --- markdown/core.py | 8 +++++--- 1 file 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): -- cgit v1.2.3