mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-06 03:48:04 +00:00
fix keyerror on action execution
This commit is contained in:
@@ -104,6 +104,11 @@ class Action(Cmd):
|
|||||||
err += ' with \"{}\"'.format(args)
|
err += ' with \"{}\"'.format(args)
|
||||||
self.log.warn(err)
|
self.log.warn(err)
|
||||||
return False
|
return False
|
||||||
|
except KeyError:
|
||||||
|
err = 'bad action: \"{}\"'.format(action)
|
||||||
|
err += ' with \"{}\"'.format(args)
|
||||||
|
self.log.warn(err)
|
||||||
|
return False
|
||||||
self.log.sub('executing \"{}\"'.format(cmd))
|
self.log.sub('executing \"{}\"'.format(cmd))
|
||||||
try:
|
try:
|
||||||
ret = subprocess.call(cmd, shell=True)
|
ret = subprocess.call(cmd, shell=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user