mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 15:11:23 -07:00
Fix wait_for to compile on python3 (#3722)
This commit is contained in:
parent
82df6f981e
commit
fefc0cdd50
1 changed files with 2 additions and 1 deletions
|
@ -435,7 +435,8 @@ def main():
|
||||||
if path:
|
if path:
|
||||||
try:
|
try:
|
||||||
os.stat(path)
|
os.stat(path)
|
||||||
except OSError, e:
|
except OSError:
|
||||||
|
e = get_exception()
|
||||||
# If anything except file not present, throw an error
|
# If anything except file not present, throw an error
|
||||||
if e.errno != 2:
|
if e.errno != 2:
|
||||||
elapsed = datetime.datetime.now() - start
|
elapsed = datetime.datetime.now() - start
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue