diff --git a/electrum/base_crash_reporter.py b/electrum/base_crash_reporter.py index 0bfc82632..6c10861e5 100644 --- a/electrum/base_crash_reporter.py +++ b/electrum/base_crash_reporter.py @@ -75,7 +75,7 @@ class BaseCrashReporter(Logger): async def do_post(self, proxy, url, data): async with make_aiohttp_session(proxy) as session: - async with session.post(url, data=data) as resp: + async with session.post(url, data=data, raise_for_status=True) as resp: return await resp.text() def get_traceback_info(self): diff --git a/electrum/gui/qt/exception_window.py b/electrum/gui/qt/exception_window.py index eb1cd39ca..103bf63c3 100644 --- a/electrum/gui/qt/exception_window.py +++ b/electrum/gui/qt/exception_window.py @@ -117,7 +117,7 @@ class Exception_Window(BaseCrashReporter, QWidget, MessageBoxMixin, Logger): self.logger.error('There was a problem with the automatic reporting', exc_info=exc_info) self.show_critical(parent=self, msg=(_('There was a problem with the automatic reporting:') + '
' + - repr(e)[:120] + '
' + + repr(e)[:120] + '

' + _("Please report this issue manually") + f' on GitHub.'), rich_text=True)