mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Need to check e.errno instead of os.errno. Fixes #8548
This commit is contained in:
parent
66802169f5
commit
315ac22437
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ def main():
|
|||
break
|
||||
except OSError, e:
|
||||
# File not present
|
||||
if os.errno == 2:
|
||||
if e.errno == 2:
|
||||
time.sleep(1)
|
||||
else:
|
||||
elapsed = datetime.datetime.now() - start
|
||||
|
|
Loading…
Reference in a new issue