This commit is contained in:
Michael Hudson-Doyle 2019-04-15 10:07:59 +12:00
parent 488f6fd2c0
commit ee920eb496
1 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,8 @@ def main():
try:
fcntl.flock(opts.answers, fcntl.LOCK_EX | fcntl.LOCK_NB)
except OSError:
logger.exception('Failed to lock auto answers file, proceding without it.')
logger.exception(
'Failed to lock auto answers file, proceding without it.')
opts.answers.close()
opts.answers = None