]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Better repr for TemplateNotFound. 961/head
authorJulien Palard <julien@palard.fr>
Mon, 18 Mar 2019 15:19:13 +0000 (16:19 +0100)
committerJulien Palard <julien@palard.fr>
Mon, 18 Mar 2019 15:19:13 +0000 (16:19 +0100)
jinja2/exceptions.py

index c018a33e323cc5682900e5be3bd0daf2c25bdda6..c9f08ac4e14b75c7b64c2e1d356cb4f08627e4e6 100644 (file)
@@ -50,7 +50,7 @@ class TemplateNotFound(IOError, LookupError, TemplateError):
     message = None
 
     def __init__(self, name, message=None):
-        IOError.__init__(self)
+        IOError.__init__(self, name)
         if message is None:
             message = name
         self.message = message