From cba120ac7646fc7ad8c18a1d24826051dffe549d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 11 Dec 2014 22:08:43 +0100 Subject: [PATCH] Fix starting without config. --- qutebrowser/utils/standarddir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/utils/standarddir.py b/qutebrowser/utils/standarddir.py index 10b857e89..acd3a6791 100644 --- a/qutebrowser/utils/standarddir.py +++ b/qutebrowser/utils/standarddir.py @@ -102,7 +102,7 @@ def get(typ, args=None): QStandardPaths.ConfigLocation) if data_path == config_path: path = os.path.join(path, 'data') - if not os.path.exists(path): + if path is not None and not os.path.exists(path): os.makedirs(path, 0o700) return path