summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/g-ir-scanner.in3
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