web/views/basecomponents.py
branchstable
changeset 7437 a1f48d7c8a03
parent 7430 ef5165fa99e0
child 8044 8ea1ad44ecac
--- a/web/views/basecomponents.py	Wed May 25 13:36:25 2011 +0200
+++ b/web/views/basecomponents.py	Wed May 25 14:08:29 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)