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.744.1573773478271770956 for ; Thu, 14 Nov 2019 15:17:58 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: nathaniel.l.desimone@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Nov 2019 15:17:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,306,1569308400"; d="scan'208";a="214643507" Received: from orsmsx103.amr.corp.intel.com ([10.22.225.130]) by fmsmga001.fm.intel.com with ESMTP; 14 Nov 2019 15:17:54 -0800 Received: from orsmsx114.amr.corp.intel.com ([169.254.8.67]) by ORSMSX103.amr.corp.intel.com ([169.254.5.179]) with mapi id 14.03.0439.000; Thu, 14 Nov 2019 15:17:54 -0800 From: "Nate DeSimone" To: "Desimone, Ashley E" , "devel@edk2.groups.io" CC: "Pandya, Puja" Subject: Re: [edk2-devel][edk2-staging/EdkRepo][PATCH] [EdkRepo] Add additional debug information to edkrepo_entry_point.py Thread-Topic: [edk2-devel][edk2-staging/EdkRepo][PATCH] [EdkRepo] Add additional debug information to edkrepo_entry_point.py Thread-Index: AQHVmz1yKy6DC8IAc0ec/WbrD+byiqeLTPJQ Date: Thu, 14 Nov 2019 23:17:53 +0000 Message-ID: <02A34F284D1DA44BB705E61F7180EF0AB5BD2061@ORSMSX114.amr.corp.intel.com> References: <20191114224658.21900-1-ashley.e.desimone@intel.com> In-Reply-To: <20191114224658.21900-1-ashley.e.desimone@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2MwMjUzOTQtYzc5YS00MjYxLTg4MTQtZjNlMzJiZmZkNmZmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSERJYUF5Q3diTHhycDhzV3hvU3didG9HS2RjbFwvK0xVMjNIdEZXQ29cL2hWQmJJUkVLZmhBRHRTU0k2OVhaRDk0In0= x-ctpclassification: CTP_NT x-originating-ip: [10.22.254.140] MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Nate DeSimone -----Original Message----- From: Desimone, Ashley E =20 Sent: Thursday, November 14, 2019 2:47 PM To: devel@edk2.groups.io Cc: Desimone, Nathaniel L ; Pandya, Puja Subject: [edk2-devel][edk2-staging/EdkRepo][PATCH] [EdkRepo] Add additional= debug information to edkrepo_entry_point.py 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.p= y index d63d8cb..76a5a18 100644 --- a/edkrepo/edkrepo_entry_point.py +++ b/edkrepo/edkrepo_entry_point.py @@ -90,8 +90,9 @@ def main(): mod =3D importlib.import_module(pref_entry) func =3D getattr(mod, pref_entry_func) func() - except: + except Exception as e: print('Unable to launch preferred entry point. Launching default e= ntry point edkrepo.edkrepo_cli.py') + traceback.print_exc() import edkrepo.edkrepo_cli edkrepo.edkrepo_cli.main() =20 @@ -100,4 +101,4 @@ if __name__ =3D=3D "__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