From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.365.1573771627674122272 for ; Thu, 14 Nov 2019 14:47:07 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: ashley.e.desimone@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Nov 2019 14:47:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,306,1569308400"; d="scan'208";a="216917009" Received: from aedesimo-desk.amr.corp.intel.com ([10.7.159.171]) by orsmga002.jf.intel.com with ESMTP; 14 Nov 2019 14:47:06 -0800 From: "Desimone, Ashley E" To: devel@edk2.groups.io Cc: Nate DeSimone , Puja Pandya Subject: [edk2-devel][edk2-staging/EdkRepo][PATCH] [EdkRepo] Add additional debug information to edkrepo_entry_point.py Date: Thu, 14 Nov 2019 14:46:58 -0800 Message-Id: <20191114224658.21900-1-ashley.e.desimone@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 Add traceback to the case where the preferred entry point cannot be loaded. Signed-off-by: Ashley E Desimone Cc: Nate DeSimone Cc: Puja Pandya --- edkrepo/edkrepo_entry_point.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/edkrepo/edkrepo_entry_point.py b/edkrepo/edkrepo_entry_point.py index d63d8cb..76a5a18 100644 --- a/edkrepo/edkrepo_entry_point.py +++ b/edkrepo/edkrepo_entry_point.py @@ -90,8 +90,9 @@ def main(): mod = importlib.import_module(pref_entry) func = getattr(mod, pref_entry_func) func() - except: + except Exception as e: print('Unable to launch preferred entry point. Launching default entry point edkrepo.edkrepo_cli.py') + traceback.print_exc() import edkrepo.edkrepo_cli edkrepo.edkrepo_cli.main() @@ -100,4 +101,4 @@ if __name__ == "__main__": sys.exit(main()) except Exception as e: traceback.print_exc() - sys.exit(1) \ No newline at end of file + sys.exit(1) -- 2.16.2.windows.1