summaryrefslogtreecommitdiffstats
path: root/module/RequestFactory.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-08-18 11:28:20 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-08-18 11:28:20 +0200
commit38e99b7f813536cd9cbfaa2a761ce439f9f2116f (patch)
treec9a0aefe17370659d138f4c0dd4c84d73c909ae5 /module/RequestFactory.py
parentfixed SerienjunkiesOrg error on bad formated season pages (diff)
downloadpyload-38e99b7f813536cd9cbfaa2a761ce439f9f2116f.tar.xz
HotfileCom refactoring + premium support + prefetching, ShareonlineBiz prefetching fix
Diffstat (limited to 'module/RequestFactory.py')
-rw-r--r--module/RequestFactory.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/RequestFactory.py b/module/RequestFactory.py
index 04d5d671a..3885cae19 100644
--- a/module/RequestFactory.py
+++ b/module/RequestFactory.py
@@ -80,7 +80,10 @@ class CookieJar():
return self.cookies.values()
def parseCookie(self, name):
- return self.cookies[name].split("\t")[6]
+ if cookies.has_key(name):
+ return self.cookies[name].split("\t")[6]
+ else:
+ return None
def getCookie(self, name):
return self.parseCookie(name)