1
0
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:
deadc0de6
2019-06-20 14:13:36 +02:00
parent eb9cae54da
commit ceacbc0a03

View File

@@ -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)