diff --git a/menu_generator/utils.py b/menu_generator/utils.py
index b30051ed050cd6365dc6c6dd4a6d8938523fe5aa..d761bdc5f5f64ef76e7efc969a191a7f92811f8c 100755
--- a/menu_generator/utils.py
+++ b/menu_generator/utils.py
@@ -30,7 +30,7 @@ def clean_app_config(app_path):
         new_app = '.'.join(app_split[:-2])
         if new_app in apps_names:
             return new_app
-        else:  # noqa
+        else:  # pragma: no cover
             raise ImproperlyConfigured(
                 "The application {0} is not in the configured apps or does" +
                 "not have the pattern app.apps.AppConfig".format(app_path)