File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -665,7 +665,7 @@ def read_tasks(session):
665
665
archive_task = ArchiveImportTask (toppath )
666
666
try :
667
667
archive_task .extract ()
668
- except IOError as exc :
668
+ except Exception as exc :
669
669
log .error ('extraction failed: {0}' .format (exc ))
670
670
continue
671
671
toppath = archive_task .toppath
Original file line number Diff line number Diff line change 23
23
24
24
import _common
25
25
from _common import unittest
26
- from helper import TestImportSession , TestHelper
26
+ from helper import TestImportSession , TestHelper , has_program
27
27
from beets import library
28
28
from beets import importer
29
29
from beets .mediafile import MediaFile
@@ -342,6 +342,7 @@ def create_archive(self):
342
342
return path
343
343
344
344
345
+ @unittest .skipIf (not has_program ('unrar' ), 'unrar program not found' )
345
346
class ImportRarTest (ImportZipTest ):
346
347
347
348
def create_archive (self ):
You can’t perform that action at this time.
0 commit comments