diff options
author | emkael <emkael@tlen.pl> | 2019-05-31 18:21:55 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-05-31 18:22:27 +0200 |
commit | 6ddd1c437c56f45c840969ec55361b8d642885a1 (patch) | |
tree | 238b64827c1bc343b38fe03358463f1fdf9a8b7a /dealconvert/__init__.py | |
parent | 3cc877cd687a5d0539d7edb62c934b5d920b95fb (diff) |
Unrecognized file extensions now raise RuntimeError to be handled the same way all other converter errors
Diffstat (limited to 'dealconvert/__init__.py')
-rw-r--r-- | dealconvert/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dealconvert/__init__.py b/dealconvert/__init__.py index 2f9b5aa..3b5a8ba 100644 --- a/dealconvert/__init__.py +++ b/dealconvert/__init__.py @@ -20,4 +20,4 @@ class DealConverter(object): deal_format.upper() + 'Format')() if self.formats[deal_format].match_file(filename): return self.formats[deal_format] - raise ValueError('Unrecognized file extension: %s' % filename) + raise RuntimeError('Unrecognized file extension: %s' % filename) |