summaryrefslogtreecommitdiffstats
path: root/module/Plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/Plugin.py')
-rw-r--r--module/Plugin.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/module/Plugin.py b/module/Plugin.py
index 3285ae8dd..7e6ca4e35 100644
--- a/module/Plugin.py
+++ b/module/Plugin.py
@@ -85,8 +85,11 @@ class Plugin():
if re.search(r"(?!http://).*\.(dlc|ccf|rsdf|txt)", self.parent.url):
return exists(self.parent.url)
header = self.req.load(self.parent.url, just_header=True)
- if re.search(r"HTTP/1.1 404 Not Found", header):
- return False
+ try:
+ if re.search(r"HTTP/1.1 404 Not Found", header):
+ return False
+ except:
+ pass
return True
def get_file_url(self):