mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-31 15:53:09 +00:00
If the temp directory creation failed in mkdtemp then temp_path is never given a value. This would lead to a NameError exception which would obfuscate the original error (out of disk space being a common one). By catching NameError, python will raise the original exception as we want. Fixes #17215