Added a missing update to the database store of cmdsethandler. Resolves #751.
This commit is contained in:
parent
d23a8a94db
commit
ef1e336339
1 changed files with 4 additions and 0 deletions
|
|
@ -417,12 +417,16 @@ class CmdSetHandler(object):
|
||||||
if any(cset.permanent for cset in delcmdsets):
|
if any(cset.permanent for cset in delcmdsets):
|
||||||
# only hit database if there's need to
|
# only hit database if there's need to
|
||||||
storage = self.obj.cmdset_storage
|
storage = self.obj.cmdset_storage
|
||||||
|
updated = False
|
||||||
for cset in delcmdsets:
|
for cset in delcmdsets:
|
||||||
if cset.permanent:
|
if cset.permanent:
|
||||||
try:
|
try:
|
||||||
storage.remove(cset.path)
|
storage.remove(cset.path)
|
||||||
|
updated = True
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
if updated:
|
||||||
|
self.obj.cmdset_storage = storage
|
||||||
for cset in delcmdsets:
|
for cset in delcmdsets:
|
||||||
# clean the in-memory stack
|
# clean the in-memory stack
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue