Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle ImportError from multiprocessing module (#1400)
Termux's Python environment doesn't provide sem_open, but fails with a nested `ImportError` on import attempts: ImportError: cannot import name 'SemLock' from '_multiprocessing' This updates the existing handling for AWS Lambda to catch both `OSError` and `ImportError`.
- Loading branch information