diff options
| author | jvoisin | 2018-07-02 00:22:05 +0200 |
|---|---|---|
| committer | jvoisin | 2018-07-02 00:22:05 +0200 |
| commit | 893f58554ab963f8abd4a08222a311014322fff1 (patch) | |
| tree | fe4ec24bc5089a6701ab985e1ad3f6a1151ea9a4 /libmat2/audio.py | |
| parent | 11008f8fd436f0b8b00bc600a2cd7a77b55c7494 (diff) | |
Improve a bit the formatting of the code thanks to pyflakes3
Diffstat (limited to 'libmat2/audio.py')
| -rw-r--r-- | libmat2/audio.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libmat2/audio.py b/libmat2/audio.py index a26f36f..99a335d 100644 --- a/libmat2/audio.py +++ b/libmat2/audio.py | |||
| @@ -10,11 +10,7 @@ class MutagenParser(abstract.AbstractParser): | |||
| 10 | super().__init__(filename) | 10 | super().__init__(filename) |
| 11 | try: | 11 | try: |
| 12 | mutagen.File(self.filename) | 12 | mutagen.File(self.filename) |
| 13 | except mutagen.flac.MutagenError: | 13 | except mutagen.MutagenError: |
| 14 | raise ValueError | ||
| 15 | except mutagen.mp3.MutagenError: | ||
| 16 | raise ValueError | ||
| 17 | except mutagen.ogg.MutagenError: | ||
| 18 | raise ValueError | 14 | raise ValueError |
| 19 | 15 | ||
| 20 | def get_meta(self): | 16 | def get_meta(self): |
| @@ -47,4 +43,4 @@ class OGGParser(MutagenParser): | |||
| 47 | 43 | ||
| 48 | 44 | ||
| 49 | class FLACParser(MutagenParser): | 45 | class FLACParser(MutagenParser): |
| 50 | mimetypes = {'audio/flac', 'audio/x-flac' } | 46 | mimetypes = {'audio/flac', 'audio/x-flac'} |
