From 26a622c46d71996c42a2f1b6f5b380e2a6a9c620 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 15 Dec 2017 16:25:22 +0100 Subject: [PATCH] Disable wrong inconsistent-return-statements --- qutebrowser/mainwindow/mainwindow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/mainwindow/mainwindow.py b/qutebrowser/mainwindow/mainwindow.py index 7c35f0529..3adce7567 100644 --- a/qutebrowser/mainwindow/mainwindow.py +++ b/qutebrowser/mainwindow/mainwindow.py @@ -103,7 +103,8 @@ def raise_window(window): QApplication.instance().alert(window) -def get_target_window(): +# WORKAROUND for https://github.com/PyCQA/pylint/issues/1770 +def get_target_window(): # pylint: disable=inconsistent-return-statements """Get the target window for new tabs, or None if none exist.""" try: win_mode = config.val.new_instance_open_target_window