]> jfr.im git - irc/weechat/qweechat.git/blobdiff - qweechat/weechat/color.py
Update copyright dates
[irc/weechat/qweechat.git] / qweechat / weechat / color.py
index 1e7781274bcaa56f2a4ea168a55dd2d59f34a017..0649f26ca80bfaf199cb972d41c716fecfe6d514 100644 (file)
@@ -2,7 +2,7 @@
 #
 # color.py - remove/replace colors in WeeChat strings
 #
-# Copyright (C) 2011-2015 Sébastien Helleu <flashcode@flashtux.org>
+# Copyright (C) 2011-2020 Sébastien Helleu <flashcode@flashtux.org>
 #
 # This file is part of QWeeChat, a Qt remote GUI for WeeChat.
 #
@@ -91,7 +91,7 @@ class Color():
         try:
             index = int(color)
             return '\x01(Fr%s)' % self.color_options[index]
-        except:
+        except:  # noqa: E722
             print('Error decoding WeeChat color "%s"' % color)
             return ''
 
@@ -99,7 +99,7 @@ class Color():
         try:
             index = int(color)
             return '\x01(%s%s#%s)' % (fg_bg, attrs, self._rgb_color(index))
-        except:
+        except:  # noqa: E722
             print('Error decoding terminal color "%s"' % color)
             return ''
 
@@ -122,7 +122,7 @@ class Color():
             index = int(color)
             return self._convert_terminal_color(fg_bg, attrs,
                                                 WEECHAT_BASIC_COLORS[index][1])
-        except:
+        except:  # noqa: E722
             print('Error decoding color "%s"' % color)
             return ''