Hi,
First of all, thank you for PuDB! It's a wonderful tool that makes the
experience of debugging complex Python code MUCH more pleasant.
There seems to be a little bug in pudb.pm(), however. pm() calls port_mortem()
with a traceback object as its argument, where post_mortem() expects a full
exception info tuple.
The attached patch (generated against git master) should fix this.
Best regards,
-- S.
diff --git a/pudb/__init__.py b/pudb/__init__.py
index 1ad709d..5a16397 100644
--- a/pudb/__init__.py
+++ b/pudb/__init__.py
@@ -143,7 +143,14 @@ def post_mortem(exc_info=None):
def pm():
import sys
- post_mortem(sys.last_traceback)
+ try:
+ e_type = sys.last_type
+ e_value = sys.last_value
+ tb = sys.last_traceback
+ except AttributeError:
+ ## No exception on record. Do nothing.
+ return
+ post_mortem((e_type, e_value, tb))
_______________________________________________
Pudb mailing list
[email protected]
http://lists.tiker.net/listinfo/pudb