Send crash reports to private pastebin

Fixes #481
This commit is contained in:
Florian Bruhin 2017-05-29 09:20:10 +02:00
parent b32223acc7
commit 7186dcb98f
3 changed files with 5 additions and 6 deletions

View File

@ -230,8 +230,7 @@ class _CrashDialog(QDialog):
def _init_info_text(self):
"""Add an info text encouraging the user to report crashes."""
info_label = QLabel("<br/><b>Note that without your help, I can't fix "
"the bug you encountered.<br/> Crash reports are "
"currently publicly accessible.</b>",
"the bug you encountered.</b>",
wordWrap=True)
self._vbox.addWidget(info_label)

View File

@ -26,7 +26,7 @@ from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject, QUrl
class PastebinClient(QObject):
"""A client for http://p.cmpl.cc/ using HTTPClient.
"""A client for Stikked pastebins using HTTPClient.
Attributes:
_client: The HTTPClient used.
@ -41,7 +41,7 @@ class PastebinClient(QObject):
arg: The error message, as string.
"""
API_URL = 'http://paste.the-compiler.org/api/'
API_URL = 'https://crashes.qutebrowser.org/api/'
success = pyqtSignal(str)
error = pyqtSignal(str)

View File

@ -77,7 +77,7 @@ def test_paste_with_parent(data, pbclient):
http_stub = pbclient._client
pbclient.paste(data["name"], data["title"], data["text"], data["reply"])
assert http_stub.data == data
assert http_stub.url == QUrl('http://paste.the-compiler.org/api/create')
assert http_stub.url == QUrl('https://crashes.qutebrowser.org/api/create')
@pytest.mark.parametrize('data', [
@ -98,7 +98,7 @@ def test_paste_without_parent(data, pbclient):
http_stub = pbclient._client
pbclient.paste(data["name"], data["title"], data["text"])
assert pbclient._client.data == data
assert http_stub.url == QUrl('http://paste.the-compiler.org/api/create')
assert http_stub.url == QUrl('https://crashes.qutebrowser.org/api/create')
@pytest.mark.parametrize('http', [