mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-05 10:53:49 +00:00
fix keyerror on action execution
This commit is contained in:
@@ -104,6 +104,11 @@ class Action(Cmd):
|
||||
err += ' with \"{}\"'.format(args)
|
||||
self.log.warn(err)
|
||||
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))
|
||||
try:
|
||||
ret = subprocess.call(cmd, shell=True)
|
||||
|
||||
Reference in New Issue
Block a user