diff options
Diffstat (limited to 'cron/handler.py')
| -rw-r--r-- | cron/handler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cron/handler.py b/cron/handler.py index e742240..c8d79f8 100644 --- a/cron/handler.py +++ b/cron/handler.py @@ -38,8 +38,8 @@ def scrape_fallback(res, http, url): } res = http.request('GET', url, headers=headers) - ck = res.headers['Set-Cookie'] - headers['Cookie'] = ck + if 'Set-Cookie' in res.headers: + headers['Cookie'] = res.headers['Set-Cookie'] res = http.request('GET', url, headers=headers) resdat = res.data.decode('utf-8') |
