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

pull/4420/head
Matt Martz 2014-08-11 12:25:42 -05:00
parent 66802169f5
commit 315ac22437
1 changed files with 1 additions and 1 deletions

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