Skip to content
Snippets Groups Projects
Commit c3542b5e authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

MAINT-2155: when permitting missing old logfile, check for ENOENT

instead of errno.EEXIST. Sigh.
parent 840cb864
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,7 @@ def fail(message): ...@@ -162,7 +162,7 @@ def fail(message):
os.rename(logname, logname + ".old") os.rename(logname, logname + ".old")
except OSError, err: except OSError, err:
# Nonexistence is okay. Anything else, not so much. # Nonexistence is okay. Anything else, not so much.
if err.errno != errno.EEXIST: if err.errno != errno.ENOENT:
raise raise
# Open new updater.log. # Open new updater.log.
......
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