Bug fixes: ascii errors? Rss timeouts, albums with special characters not being sent to sab

This commit is contained in:
Remy
2011-07-18 00:01:29 -07:00
parent e6bdd159ec
commit 8071671977
5 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -2911,7 +2911,7 @@ def _open_resource(url_file_stream_or_string, etag, modified, agent, referrer, h
opener = apply(urllib2.build_opener, tuple(handlers + [_FeedURLHandler()]))
opener.addheaders = [] # RMK - must clear so we only send our custom User-Agent
try:
return opener.open(request)
return opener.open(request, timeout=15)
finally:
opener.close() # JohnD