summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/UnTar.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/internal/UnTar.py')
-rw-r--r--module/plugins/internal/UnTar.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/internal/UnTar.py b/module/plugins/internal/UnTar.py
index f2a140ca7..7cc8516ae 100644
--- a/module/plugins/internal/UnTar.py
+++ b/module/plugins/internal/UnTar.py
@@ -25,7 +25,10 @@ class UnTar(Extractor):
@classmethod
def isarchive(cls, filename):
- return tarfile.is_tarfile(encode(filename))
+ try:
+ return tarfile.is_tarfile(encode(filename))
+ except:
+ return False
@classmethod