products/CPSRSS

changeset 286:de8a31cea808 CPS-3.5

Added a protection against missing parameters that cause ERROR messages in the logs.
author M.-A. Darche <ma.darche@aful.org>
date Thu, 06 Oct 2011 09:07:25 +0200
parents faa7a93b48c2
children bc5b1366d4c3
files CHANGES browser/channels.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/CHANGES
     1.2 +++ b/CHANGES
     1.3 @@ -6,7 +6,7 @@
     1.4  -
     1.5  Bug fixes
     1.6  ~~~~~~~~~
     1.7 --
     1.8 +- Protection against missing parameters that cause ERROR messages in the logs.
     1.9  New internal features
    1.10  ~~~~~~~~~~~~~~~~~~~~~
    1.11  - 
     2.1 --- a/browser/channels.py
     2.2 +++ b/browser/channels.py
     2.3 @@ -125,7 +125,7 @@
     2.4          max_words = int(kw.get('max_words', 0))
     2.5  
     2.6          data_items = []
     2.7 -        channels_ids = kw.get('channels')
     2.8 +        channels_ids = kw.get('channels', [])
     2.9          for channel_id in channels_ids:
    2.10              if not cont.hasObject(channel_id):
    2.11                  continue