diff options
Diffstat (limited to 'tools/g-ir-scanner.in')
-rwxr-xr-x | tools/g-ir-scanner.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/g-ir-scanner.in b/tools/g-ir-scanner.in index 5b8035b7..943d9baa 100755 --- a/tools/g-ir-scanner.in +++ b/tools/g-ir-scanner.in @@ -23,7 +23,8 @@ import os import sys if 'GI_SCANNER_DEBUG' in os.environ: - def on_exception(type, value, tb): + def on_exception(exctype, value, tb): + print "Caught exception: %r %r" % (exctype, value) import pdb pdb.pm() sys.excepthook = on_exception |