Skip to content

Commit

Permalink
Fix inifinite loop in property access
Browse files Browse the repository at this point in the history
A subclass of VoilaExporter would create an infinite loop with this

class Foo(VoilaExporter):
    pass
  • Loading branch information
martinRenou committed Aug 10, 2022
1 parent 8c56630 commit 8bb454f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion voila/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async def generate_from_notebook_node(self, nb, resources=None, extra_context={}
def environment(self):
# enable Jinja async template execution
self.enable_async = True
env = super(type(self), self).environment
env = super().environment
if 'jinja2.ext.do' not in env.extensions:
env.add_extension('jinja2.ext.do')
return env
Expand Down

0 comments on commit 8bb454f

Please sign in to comment.