From eb426cb870299cb904953cf9176d1f8f572652e4 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 3 Jun 2014 17:04:22 +0200 Subject: [PATCH] Suppress OpenType warning message --- qutebrowser/utils/log.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index e654b0fd0..d51dccb6c 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -131,9 +131,10 @@ def qt_message_handler(msg_type, context, msg): QtFatalMsg: logging.CRITICAL, } # Suppress some messages because they're well-known. - suppressed_msgs = ['libpng warning: iCCP: Not recognizing known sRGB ' - 'profile that has been edited'] - if msg in suppressed_msgs: + suppressed_msgs = ["libpng warning: iCCP: Not recognizing known sRGB " + "profile that has been edited", + "OpenType support missing for script 19"] + if msg.strip() in suppressed_msgs: return # We get something like "void qt_png_warning(png_structp, png_const_charp)" # from Qt, but only want "qt_png_warning".