# HG changeset patch # User Aurelien Campeas # Date 1306325648 -7200 # Node ID ff6ae47bb68808093c2fceda2dfed9b37a0fd33d # Parent 28ec860c4436f2e5d11e3803b1b9db24ae2088d3# Parent a1f48d7c8a039736a7e61c5938f41c8e59b49528 backport stable changes diff -r 28ec860c4436 -r ff6ae47bb688 web/views/basecomponents.py --- a/web/views/basecomponents.py Wed May 25 13:39:08 2011 +0200 +++ b/web/views/basecomponents.py Wed May 25 14:14:08 2011 +0200 @@ -191,7 +191,8 @@ msgs = [] if self._cw.cnx: srcmsg = self._cw.get_shared_data('sources_error', pop=True) - msgs.append(srcmsg) + if srcmsg: + msgs.append(srcmsg) reqmsg = self._cw.message # XXX don't call self._cw.message twice if reqmsg: msgs.append(reqmsg)