Raise a more accurate exception in git systems for unsupported formats.
offlate/systems/git.py
96 | 96 | translationfiles.append({'filename': yamlpath, | |
97 | 97 | 'format': TSFormat({'file': path + yamlpath, 'lang': self.lang})}) | |
98 | 98 | else: | |
99 | - | raise Exception('Unsupported file format: {}'.format(resource['file_format'])) | |
99 | + | raise UnsupportedFormatException(resource['file_format']) | |
100 | 100 | return translationfiles | |
101 | 101 | ||
102 | 102 | def clone(self, directory, callback=None): |