mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
properly fix postmortem dump
This commit is contained in:
parent
2d11b6e7d7
commit
9209d34500
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@ if os.environ.get("DEBUG"):
|
||||||
import sys, traceback
|
import sys, traceback
|
||||||
def info(type, value, tb):
|
def info(type, value, tb):
|
||||||
from PyQt4.QtCore import pyqtRemoveInputHook
|
from PyQt4.QtCore import pyqtRemoveInputHook
|
||||||
traceback.print_exc()
|
for line in traceback.format_exception(type, value, tb):
|
||||||
|
sys.stdout.write(line)
|
||||||
pyqtRemoveInputHook()
|
pyqtRemoveInputHook()
|
||||||
from pdb import pm
|
from pdb import pm
|
||||||
pm()
|
pm()
|
||||||
|
|
Loading…
Reference in a new issue