diff --git a/tryton/gui/window/infobar.py b/tryton/gui/window/infobar.py index 67ba14e43e..4293d70787 100644 --- a/tryton/gui/window/infobar.py +++ b/tryton/gui/window/infobar.py @@ -15,6 +15,8 @@ class InfoBar(object): return self.__box def info_bar_add(self, message, type_=Gtk.MessageType.ERROR): + if not message: + return key = (message, type_) if key not in self.__messages: info_bar = Gtk.InfoBar()