Handle crashes before config is loaded correctly

This commit is contained in:
Florian Bruhin 2014-04-21 21:09:15 +02:00
parent 695ab70d7c
commit 1c5686f5e3

View File

@ -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: