Merge pull request #8550 from sivel/issue/8548

wait_for module: check e.errno instead of os.errno. Fixes #8548
This commit is contained in:
Michael DeHaan 2014-08-11 14:07:12 -04:00
commit e49c4e298f

View file

@ -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