From nobody Sat May 4 01:17:36 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+50709+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+50709+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1573771629; cv=none; d=zoho.com; s=zohoarc; b=VotYrFQm5jKtJNbU+0F9pkdNcxfr2/AMiqiz2Ikqe/AjnvUlhpyWGJnp5ZowtnixtjEcN9Q3ibZ0OQ5anwQNJDfWzjjOK0G+vEfxwN/jZZjCuuCnRF99RprcI92lXx9LXZr/q5L2Jbh2Bz+x5BcjD5UlqA01fntJ6e6GcpBz+mw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573771629; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To; bh=Ciaf1TCueFT/m74nAlMUivpgmTRYU5FcHA2pC66Z3Ew=; b=P9+vNARgoACag9L7T/aZ/DqM98HF3+WoRm/95dOIEVsHgMMKStnBLrmbnB7urjYMZF6hHjMF1Y0Xs6O63GCVs1ES/WNCtKbb3ULm8pDDERVb0LyO/Qb3qcE4TunDV2+fSZce1kPI1gGi6Mn9jAgtVVFmb3J4h0Ir7BTzZ7oC160= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+50709+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1573771629077186.90742654999758; Thu, 14 Nov 2019 14:47:09 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id bchBYY1788612xSlMY2vbQ8T; Thu, 14 Nov 2019 14:47:08 -0800 X-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 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-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" X-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> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ashley.e.desimone@intel.com X-Gm-Message-State: FfL4KEs0lqP0GODeVzrGZRbvx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1573771628; bh=X6XrpwYes9EoatbVmO6f+6E3T9ZRdDg+9zUWNX817Is=; h=Cc:Date:From:Reply-To:Subject:To; b=qMuH6nmqHUXX4LuHNzctEcLcpFnTidUzBrR7bDv6ktHPAT5d+glUlzprROfeyENIMUn GaXOEyAtY5AjNPCBXC/1ih3ziMOfvapalYpSyvwVb8J8oJE3O6LE9OYcuy82+GfF41cAG z0bPBzcEV2qhfkpckGZ0VO1yPWeH+L97nAI= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Nate DeSimone --- 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 =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) --=20 2.16.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#50709): https://edk2.groups.io/g/devel/message/50709 Mute This Topic: https://groups.io/mt/58316940/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-