Disable wrong inconsistent-return-statements

This commit is contained in:
Florian Bruhin 2017-12-15 16:25:22 +01:00
parent f4ed31b295
commit 26a622c46d

View File

@ -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