Skip to content

Commit

Permalink
Merge pull request #5757 from drew2a/fix_error_sending
Browse files Browse the repository at this point in the history
Fix Reporter
  • Loading branch information
drew2a committed Nov 30, 2020
2 parents 1e1c3a1 + 71ef4a4 commit 250339a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/run_tribler.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,10 @@ async def start_tribler():
get_event_loop().run_forever()


def excepthook(exctype, value, traceback): # pylint: disable=unused-argument
SentryReporter.send_exception_with_confirmation(value)


if __name__ == "__main__":
SentryReporter.init(sentry_url=sentry_url, scrubber=SentryScrubber())
SentryReporter.allow_sending_globally(False, 'run_tribler.__main__()')

sys.excepthook = excepthook

# Get root state directory (e.g. from environment variable or from system default)
root_state_dir = get_root_state_directory()
# Check whether we need to start the core or the user interface
Expand Down
2 changes: 1 addition & 1 deletion src/tribler-gui/tribler_gui/dialogs/feedbackdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def on_send_clicked(self):

# if no backend_sentry_event, then try to restore GUI exception
sentry_event = self.backend_sentry_event or SentryReporter.last_event
SentryReporter.send(sentry_event, post_data, sys_info_dict)
SentryReporter.send_event(sentry_event, post_data, sys_info_dict)

TriblerNetworkRequest(endpoint, self.on_report_sent, raw_data=tribler_urlencode(post_data), method='POST')

Expand Down

0 comments on commit 250339a

Please sign in to comment.