forked from pool/python-feedparser
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-feedparser?expand=0&rev=49
16 lines
507 B
Diff
16 lines
507 B
Diff
---
|
|
feedparser/http.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/feedparser/http.py
|
|
+++ b/feedparser/http.py
|
|
@@ -203,7 +203,7 @@ def get(url, etag=None, modified=None, a
|
|
result['href'] = f.url.decode('utf-8', 'ignore')
|
|
else:
|
|
result['href'] = f.url
|
|
- result['status'] = getattr(f, 'status', 200)
|
|
+ result['status'] = getattr(f, 'status', None) or 200
|
|
|
|
# Stop processing if the server sent HTTP 304 Not Modified.
|
|
if getattr(f, 'code', 0) == 304:
|