def test_enable(self):
     enable_errorhook(True)
     enable_errorhook(False)
     try:
         raise Exception
     except Exception:
         errorhook()
 def test_enable(self):
     enable_errorhook(True)
     enable_errorhook(False)
     try:
         raise Exception
     except Exception:
         errorhook()
Exemple #3
0
def _init_gtk_debug(no_excepthook):
    from quodlibet.errorreport import enable_errorhook

    enable_errorhook(not no_excepthook)
Exemple #4
0
def _init_gtk_debug(no_excepthook):
    from quodlibet.errorreport import enable_errorhook

    enable_errorhook(not no_excepthook)