Having just upgraded from 1.99.2 to 1.99.4, I noticed that trying to
access a gluon.storage.Storage with a missing key no longer returns a
KeyError, but None. This broke my application due to the way I check
for request vars:

    try:
        sort = request.vars['sort']
    except KeyError:
        sort = 'created'

When the 'sort' request var is missing, this code will now assign None
to sort instead of the default value.

I could not find mention of this change or the reasoning behind it in
the change log. Can someone speak to this? My view is that making
gluon.storage.Storage key access behave differently from standard
Python dictionaries is confusing.

Reply via email to