From 1bb8abef14af4690385aeb1185a52d5456ec11d8 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 11 Dec 2011 17:12:23 +0100 Subject: Handle files with stupid rights Now, files that are not readable, or writatble, or non-existent are correctly handled. --- mat-cli | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mat-cli') diff --git a/mat-cli b/mat-cli index 00c5c11..253ea96 100755 --- a/mat-cli +++ b/mat-cli @@ -152,8 +152,10 @@ def main(): for filename in filenames: class_file = mat.create_class_file(filename, args.backup, args.add2archive) - if class_file is not None: + if class_file is not False: func(class_file, filename, args.force) + else: + print('Unable to process %s' % filename) if __name__ == '__main__': main() -- cgit v1.3