diff --git a/qutebrowser/utils/utils.py b/qutebrowser/utils/utils.py index a866a4b22..96070fc6b 100644 --- a/qutebrowser/utils/utils.py +++ b/qutebrowser/utils/utils.py @@ -111,6 +111,8 @@ def safe_shlex_split(s): Since shlex raises ValueError in both cases we unfortunately have to parse the exception string... """ + if s is None: + raise TypeError("Can't split None!") while True: try: return shlex.split(s)