From 0ea3c3f2a510eb4d7eb3f17d76a6b623495a690c Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Tue, 4 May 2021 18:09:53 +0530 Subject: [PATCH] fix(bench-console): Show only apps in namespace (cherry picked from commit 3c1b6c66d9125124ea7cfb7bbebd3ffb4ed6d39b) --- frappe/commands/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/commands/utils.py b/frappe/commands/utils.py index 19f783eb28..1be2565513 100644 --- a/frappe/commands/utils.py +++ b/frappe/commands/utils.py @@ -502,6 +502,7 @@ def console(context): locals()[app] = __import__(app) except ModuleNotFoundError: failed_to_import.append(app) + all_apps.remove(app) print("Apps in this namespace:\n{}".format(", ".join(all_apps))) if failed_to_import: