diff --git a/qutebrowser/app.py b/qutebrowser/app.py index ec477ce8f..c755c2f41 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -840,7 +840,11 @@ class Application(QApplication): def event(self, e): """Handle macOS FileOpen events.""" if e.type() == QEvent.FileOpen: - open_url(e.url(), no_raise=True) + url = e.url() + if url.isValid(): + open_url(url, no_raise=True) + else: + message.error("Invalid URL: {}".format(url.errorString())) else: return super().event(e)