mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
added trigger_crash method for testing crash reporter
invoke via console as: electrum.base_crash_reporter.trigger_crash()
This commit is contained in:
parent
94b721baa4
commit
28ca561bba
1 changed files with 17 additions and 0 deletions
|
@ -131,3 +131,20 @@ class BaseCrashReporter(Logger):
|
|||
|
||||
def get_wallet_type(self):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
def trigger_crash():
|
||||
# note: do not change the type of the exception, the message,
|
||||
# or the name of this method. All reports generated through this
|
||||
# method will be grouped together by the crash reporter, and thus
|
||||
# don't spam the issue tracker.
|
||||
|
||||
class TestingException(Exception):
|
||||
pass
|
||||
|
||||
def crash_test():
|
||||
raise TestingException("triggered crash for testing purposes")
|
||||
|
||||
import threading
|
||||
t = threading.Thread(target=crash_test)
|
||||
t.start()
|
||||
|
|
Loading…
Add table
Reference in a new issue