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: