Closed ThatXliner closed 3 years ago
No. IMO this is an anti-pattern. The try-except syntax is there, use it.
It won't allow nice one-liners for fall backs like
shell = shellingham.detect_shell(quiet=True) or os.getenv("SHELL") or os.getenv("COMSPEC")
but ok
So that it will return None if no shell is found