misc: fix typo in nonce creation error handling (#22599)

This commit is contained in:
Frédéric Péters 2018-03-17 18:08:58 +01:00
parent 04b4b52a76
commit da636dd976
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ def accept_nonce_file_storage(path, now, value, context=None,
try:
os.link(temp_file.name, file_path)
except OSError, e:
if e.eerno == errno.EEXIST:
if e.errno == errno.EEXIST:
unlink_if_exists(temp_file.name)
return False
return True