users: Fix issue with removing temp file

This commit is contained in:
Sunil Mohan Adapa 2016-07-31 15:06:20 +05:30
parent 60e808e9bb
commit 9ba327f0dd
No known key found for this signature in database
GPG Key ID: 36C361440C9BC971

View File

@ -443,6 +443,6 @@ Owners: {package}
subprocess.run(['dpkg-reconfigure', package], env=env)
try:
os.remove(override_file)
os.remove(override_file.name)
except OSError:
pass