Commit 165572fb by Matt Martz Committed by James Cammarata

Need to check e.errno instead of os.errno. Fixes #8548

parent df136769
......@@ -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