From 865a060e62e6e94678eaa2fc97d66f5f8b608cf5 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Fri, 5 Jan 2024 19:52:51 +0100 Subject: [PATCH] Update src/installer/scripts.py Co-authored-by: Pradyun Gedam --- src/installer/scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/installer/scripts.py b/src/installer/scripts.py index 56a49df9..5de5e7de 100644 --- a/src/installer/scripts.py +++ b/src/installer/scripts.py @@ -128,7 +128,7 @@ def _get_launcher_data(self, kind: "LauncherKind") -> Optional[bytes]: name = _ALLOWED_LAUNCHERS[key] except KeyError as exc: error = f"{key!r} not in {sorted(_ALLOWED_LAUNCHERS)!r}" - raise InvalidScript(error) from exc + raise InvalidScript(error) from None return read_binary(_scripts, name) def _get_alternate_executable(self, executable: str, kind: "LauncherKind") -> str: