earlyinit: Only display exception if there was one
This commit is contained in:
parent
4d91ccfea5
commit
d7f9e4735e
@ -101,7 +101,8 @@ def _die(message, exception=None):
|
||||
print(message, file=sys.stderr)
|
||||
print("Exiting because of --no-err-windows.", file=sys.stderr)
|
||||
else:
|
||||
message += '<br/><br/><br/><b>Error:</b><br/>{}'.format(exception)
|
||||
if exception is not None:
|
||||
message += '<br/><br/><br/><b>Error:</b><br/>{}'.format(exception)
|
||||
msgbox = QMessageBox(QMessageBox.Critical, "qutebrowser: Fatal error!",
|
||||
message)
|
||||
msgbox.setTextFormat(Qt.RichText)
|
||||
|
Loading…
Reference in New Issue
Block a user