diff --git a/django_coverage_plugin/plugin.py b/django_coverage_plugin/plugin.py index 60c61df..e8da051 100644 --- a/django_coverage_plugin/plugin.py +++ b/django_coverage_plugin/plugin.py @@ -75,6 +75,8 @@ def check_debug(): return False if not hasattr(django.template.backends.django, "DjangoTemplates"): raise DjangoTemplatePluginException("Can't use non-Django templates.") + if not django.template.engines._engines: + return False for engine in django.template.engines.all(): if not isinstance(engine, django.template.backends.django.DjangoTemplates):