summaryrefslogtreecommitdiff
path: root/mat-cli
diff options
context:
space:
mode:
authorjvoisin2011-12-11 17:12:23 +0100
committerjvoisin2011-12-11 17:12:23 +0100
commit1bb8abef14af4690385aeb1185a52d5456ec11d8 (patch)
tree508f59b22b274178760b14e9d0c7f0c38938f8c5 /mat-cli
parent52fef0b1682057f6c34ecf373bdf545e3e3c0217 (diff)
Handle files with stupid rights
Now, files that are not readable, or writatble, or non-existent are correctly handled.
Diffstat (limited to 'mat-cli')
-rwxr-xr-xmat-cli4
1 files changed, 3 insertions, 1 deletions
diff --git a/mat-cli b/mat-cli
index 00c5c11..253ea96 100755
--- a/mat-cli
+++ b/mat-cli
@@ -152,8 +152,10 @@ def main():
152 for filename in filenames: 152 for filename in filenames:
153 class_file = mat.create_class_file(filename, args.backup, 153 class_file = mat.create_class_file(filename, args.backup,
154 args.add2archive) 154 args.add2archive)
155 if class_file is not None: 155 if class_file is not False:
156 func(class_file, filename, args.force) 156 func(class_file, filename, args.force)
157 else:
158 print('Unable to process %s' % filename)
157 159
158if __name__ == '__main__': 160if __name__ == '__main__':
159 main() 161 main()