From 11502b79426afb587729dbc3fd97fac4a1657b55 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 14 Aug 2015 06:43:23 +0200 Subject: [PATCH] signalfilter: Remove annoying type check. --- qutebrowser/browser/signalfilter.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qutebrowser/browser/signalfilter.py b/qutebrowser/browser/signalfilter.py index 706e42f62..957dc8acb 100644 --- a/qutebrowser/browser/signalfilter.py +++ b/qutebrowser/browser/signalfilter.py @@ -24,7 +24,6 @@ import functools from PyQt5.QtCore import QObject from qutebrowser.utils import debug, log, objreg -from qutebrowser.browser import webview class SignalFilter(QObject): @@ -58,9 +57,6 @@ class SignalFilter(QObject): Return: A partial functon calling _filter_signals with a signal. """ - if not isinstance(tab, webview.WebView): - raise ValueError("Tried to create filter for {} which is no " - "WebView!".format(tab)) return functools.partial(self._filter_signals, signal, tab) def _filter_signals(self, signal, tab, *args):