diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-05-12 12:07:40 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-05-12 12:07:40 +0100 |
commit | dcd33d3089bec1de05a96839d49e3bb586b918ad (patch) | |
tree | c01b82e1b8b62e5796fd6036b5e5d0714c179497 /summain | |
parent | 836e749824673b00c084e7f4361427edab1199fe (diff) | |
download | summain-dcd33d3089bec1de05a96839d49e3bb586b918ad.tar.gz |
Bug fix: fail if filename given on command line does not exist
Diffstat (limited to 'summain')
-rwxr-xr-x | summain | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -128,6 +128,8 @@ class Summain(cliapp.Application): dirnames.sort() for filename in sorted(filenames): yield os.path.join(dirname, filename) + elif not os.path.exists(root): + raise cliapp.AppException('Does not exist: %s' % root) else: yield root |