diff options
| author | jvoisin | 2011-12-11 17:12:23 +0100 |
|---|---|---|
| committer | jvoisin | 2011-12-11 17:12:23 +0100 |
| commit | 1bb8abef14af4690385aeb1185a52d5456ec11d8 (patch) | |
| tree | 508f59b22b274178760b14e9d0c7f0c38938f8c5 /mat-cli | |
| parent | 52fef0b1682057f6c34ecf373bdf545e3e3c0217 (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-x | mat-cli | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -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 | ||
| 158 | if __name__ == '__main__': | 160 | if __name__ == '__main__': |
| 159 | main() | 161 | main() |
