Skip to content
Snippets Groups Projects
Commit fc3b178b authored by Brian Moe's avatar Brian Moe
Browse files

Typo. OSError attribute is 'errno', not 'error'

parent 7579044c
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,7 @@ class VersionedFile(file):
os.close(fd)
break
except OSError, e:
if e.error != errno.EEXIST:
if e.errno != errno.EEXIST:
raise
version += 1
failedAttempts += 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment