Browse Source

Print traceback on ImportError in get_app_commands (#3833)

version-14
Aditya Hase 8 years ago
committed by Rushabh Mehta
parent
commit
b4b889835a
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      frappe/utils/bench_helper.py

+ 2
- 0
frappe/utils/bench_helper.py View File

@@ -5,6 +5,7 @@ import os
import json import json
import importlib import importlib
import frappe.utils import frappe.utils
import traceback


click.disable_unicode_literals_warning = True click.disable_unicode_literals_warning = True


@@ -62,6 +63,7 @@ def get_app_commands(app):
try: try:
app_command_module = importlib.import_module(app + '.commands') app_command_module = importlib.import_module(app + '.commands')
except ImportError: except ImportError:
traceback.print_exc()
return [] return []


ret = {} ret = {}


Loading…
Cancel
Save