Browse Source

kivy crash_reporter: a bit more logging

patch-4
SomberNight 4 years ago
parent
commit
eaa4de3354
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 10
      electrum/gui/kivy/uix/dialogs/crash_reporter.py

10
electrum/gui/kivy/uix/dialogs/crash_reporter.py

@ -122,13 +122,15 @@ class CrashReporter(BaseCrashReporter, Factory.Popup):
# FIXME network request in GUI thread...
response = json.loads(BaseCrashReporter.send_report(self, loop, proxy,
"/crash.json", timeout=10))
except (ValueError, ClientError):
#self.logger.debug("", exc_info=True)
except (ValueError, ClientError) as e:
self.logger.warning(f"Error sending crash report. exc={e!r}")
self.show_popup(_('Unable to send report'), _("Please check your network connection."))
else:
self.show_popup(_('Report sent'), response["text"])
if response["location"]:
self.open_url(response["location"])
location = response["location"]
if location:
self.logger.info(f"Crash report sent. location={location!r}")
self.open_url(location)
self.dismiss()
def on_dismiss(self):

Loading…
Cancel
Save