[merge request] Kubuntu Automation: exit nicer with non-existant commands with do-all
Walter Lapchynski
wxl at ubuntu.com
Sat Nov 12 00:37:05 UTC 2016
Currently, the `do-all` command accepts a required argument /command/ which
is called without checking to see if the command is actually valid. To deal
with this, we catch an OSError exception. Technically this, covers more
than just a file not found issue FWIW. The exit code is actually
specifically for a command not found, however.
Last commit here does the trick:
https://code.launchpad.net/~wxl/+git/kubuntu-automation/+ref/master
--
@wxl | polka.bike
C563 CAC5 8BE1 2F22 A49D
68F6 8B57 A48B C4F2 051A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kubuntu-devel/attachments/20161111/ba3cab5e/attachment.html>
More information about the kubuntu-devel
mailing list