Need to check e.errno instead of os.errno. Fixes #8548
This commit is contained in:
parent
3f052ead3a
commit
28939f49f7
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ def main():
|
||||||
break
|
break
|
||||||
except OSError, e:
|
except OSError, e:
|
||||||
# File not present
|
# File not present
|
||||||
if os.errno == 2:
|
if e.errno == 2:
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
else:
|
else:
|
||||||
elapsed = datetime.datetime.now() - start
|
elapsed = datetime.datetime.now() - start
|
||||||
|
|
Loading…
Reference in a new issue