Ensures popping lgpo.secedit_data does not throw KeyError

Fixes #56288
This commit is contained in:
Loren Gordon 2020-03-02 17:53:41 -08:00
parent 9adc2214c3
commit d1f776178c
No known key found for this signature in database
GPG key ID: BA81DB57D5ACCD5E

View file

@ -5526,7 +5526,7 @@ def _write_secedit_data(inf_data):
# Success
if retcode == 0:
# Pop secedit data so it will always be current
__context__.pop('lgpo.secedit_data')
__context__.pop('lgpo.secedit_data', None)
return True
# Failure
return False