From 1c5686f5e38cb4c075e387590e6e8f9a79239827 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 21 Apr 2014 21:09:15 +0200 Subject: [PATCH] Handle crashes before config is loaded correctly --- qutebrowser/widgets/crash.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qutebrowser/widgets/crash.py b/qutebrowser/widgets/crash.py index daa9fc446..9d31870d5 100644 --- a/qutebrowser/widgets/crash.py +++ b/qutebrowser/widgets/crash.py @@ -104,8 +104,11 @@ class CrashDialog(QDialog): ('Open Pages', '\n'.join(pages)), ('Command history', '\n'.join(cmdhist)), ('Commandline args', ' '.join(sys.argv[1:])), - ('Config', config.instance.dump_userconfig()), ] + try: + outputs.append(('Config', config.instance.dump_userconfig())) + except AttributeError: + pass chunks = [] for (header, body) in outputs: if body is not None: