summaryrefslogtreecommitdiffstats
path: root/module/Plugin.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-23 00:04:36 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-23 00:04:36 +0100
commita5ff0482ede8bd7bd932482887f2f7cdae5039d9 (patch)
tree0d59800acd09c72ddb9c1e360d6a9c065cf184b7 /module/Plugin.py
parentmore docstrings, small design changes (diff)
downloadpyload-a5ff0482ede8bd7bd932482887f2f7cdae5039d9.tar.xz
core: downloadlimit is not far away ;) gui: restart download action
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):