diff options
| author | jvoisin | 2011-07-03 15:01:06 +0200 |
|---|---|---|
| committer | jvoisin | 2011-07-03 15:01:06 +0200 |
| commit | 9fcc253ad66a002b708eef7ff2c0a379dac8f5ce (patch) | |
| tree | 966b365152fae7b23a7f247bfe6dd6db29b1d6c5 /cli.py | |
| parent | b1570828209e133ea441cf49e09211048f9fc15a (diff) | |
Correct handling of unhandled files
Diffstat (limited to 'cli.py')
| -rwxr-xr-x | cli.py | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -92,7 +92,8 @@ def main(): | |||
| 92 | 92 | ||
| 93 | for filename in filenames: | 93 | for filename in filenames: |
| 94 | class_file = mat.create_class_file(filename, args.backup) | 94 | class_file = mat.create_class_file(filename, args.backup) |
| 95 | func(class_file, filename) | 95 | if class_file is not None: |
| 96 | func(class_file, filename) | ||
| 96 | 97 | ||
| 97 | if __name__ == '__main__': | 98 | if __name__ == '__main__': |
| 98 | main() | 99 | main() |
