diff --git a/qutebrowser/network/qutescheme.py b/qutebrowser/network/qutescheme.py index edd8e05c0..6e816a002 100644 --- a/qutebrowser/network/qutescheme.py +++ b/qutebrowser/network/qutescheme.py @@ -91,8 +91,12 @@ class QuteSchemeHandler(SchemeHandler): # FIXME handle unknown pages logging.debug('request: {}'.format(request)) url = urlstring(request.url()) - handler = getattr(QuteHandlers, self._transform_url(url)) - data = handler() + try: + handler = getattr(QuteHandlers, self._transform_url(url)) + except AttributeError: + data = bytes() + else: + data = handler() return SpecialNetworkReply(request, data, "text/html", self.parent())