fix(bench-console): Show only apps in namespace

(cherry picked from commit 3c1b6c66d9)
This commit is contained in:
Gavin D'souza 2021-05-04 18:09:53 +05:30 committed by mergify-bot
parent affeb672a6
commit 0ea3c3f2a5

View file

@ -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: