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

    enable_errorhook(not no_excepthook)
示例#4
0
文件: _init.py 项目: Muges/quodlibet
def _init_gtk_debug(no_excepthook):
    from quodlibet.errorreport import enable_errorhook

    enable_errorhook(not no_excepthook)