Skip to content

Added handling of case where shell cannot be found in add_process - #998

Open
kzscisoft wants to merge 1 commit into
devfrom
997-add-process-crashes-if-it-cannot-find-a-shell
Open

Added handling of case where shell cannot be found in add_process#998
kzscisoft wants to merge 1 commit into
devfrom
997-add-process-crashes-if-it-cannot-find-a-shell

Conversation

@kzscisoft

Copy link
Copy Markdown
Collaborator

Fix Shell not found for add_process

Issue: #997

Python Version(s) Tested: 3.14

Operating System(s): Ubuntu 26.04

📝 Summary

Fixes an issue where get_current_shell returns None and therefore None is used in a string check.

🔍 Diagnosis

Execution of code on Apptainer via HPC systems leads to no shell being identified.

🔄 Changes

Modified comparison to if any(shell in (get_current_shell() or "") for shell in ('pwsh', 'powershell')):.

✔️ Checklist

  • Unit and integration tests passing.
  • Pre-commit hooks passing.
  • Quality checks passing.

@kzscisoft kzscisoft linked an issue Jul 30, 2026 that may be closed by this pull request
@kzscisoft
kzscisoft requested a review from wk9874 July 30, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add process crashes if it cannot find a shell

2 participants