~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/webapp/errorlog.py

[rs=buildbot-poller] automatic merge from stable. Revisions: 14397,
        14398, 14399 included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
234
234
            value = '<hidden>'
235
235
        if not isinstance(value, basestring):
236
236
            value = oops.createhooks.safe_unicode(value)
 
237
        # keys need to be unicode objects. The form items (a subset of
 
238
        # request.items) are generally just the url query_string url decoded,
 
239
        # which means the keys may be invalid in bson docs (bson requires that
 
240
        # they be unicode).
 
241
        key = oops.createhooks.safe_unicode(key)
237
242
        report['req_vars'][key] = value
238
243
    if IXMLRPCRequest.providedBy(request):
239
244
        args = request.getPositionalArguments()