diff options
-rwxr-xr-x | summain | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -54,6 +54,12 @@ class Summain(cliapp.Application): pn = summainlib.SamePath() checksums = [x.upper() for x in self.settings['checksum'] or ['SHA1']] + o = summainlib.FilesystemObject('.', nn, pn, exclude, checksums) + for checksum in checksums: + try: + o[checksum] + except KeyError: + raise cliapp.AppException('Unknown checksum %s' % checksum) for root in args: for filename in self.files(root): o = summainlib.FilesystemObject(filename, nn, pn, exclude, |