Commit e49c4e29 by Michael DeHaan

Merge pull request #8550 from sivel/issue/8548

wait_for module: check e.errno instead of os.errno. Fixes #8548
parents 90c9bf89 315ac224
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment