mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-31 22:20:12 +00:00
Fixing issue where user agent doesn't exist.
This commit is contained in:
parent
39f063d157
commit
2e6f1af4a2
1 changed files with 1 additions and 1 deletions
|
@ -1208,7 +1208,7 @@ def shared_stories_rss_feed(request, user_id, username):
|
|||
|
||||
logging.user(request, "~FBGenerating ~SB%s~SN's RSS feed: ~FM%s" % (
|
||||
user.username,
|
||||
request.META['HTTP_USER_AGENT'][:24]
|
||||
request.META.get('HTTP_USER_AGENT', "")[:24]
|
||||
))
|
||||
return HttpResponse(rss.writeString('utf-8'), content_type='application/rss+xml')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue