Skip to content

Commit

Permalink
Make the #197 fix work with Python 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
donkirkby committed Aug 9, 2018
1 parent 6af21e9 commit 72d4d04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/gettingstarted.md
Expand Up @@ -5,7 +5,7 @@ subtitle: Plug ins for PyCharm, Emacs, and Eclipse
I've built a tool that lets you run your Python code as you type it. For
example, this code draws a 50x50 pixel square.

![some code that draws a 50x50 square][square50]
![code that draws a 50x50 square][square50]

When I change the forward distance to 75, the square immediately changes. I
don't even have to save the file.
Expand Down
4 changes: 3 additions & 1 deletion plugin/PySrc/code_tracer.py
Expand Up @@ -556,7 +556,9 @@ def visit_Try(self, node):
def visit_Raise(self, node):
existing_node = self.generic_visit(node)
new_nodes = [existing_node]
if node.exc is None:
node_exc = getattr(node, 'type', None)
node_exc = getattr(node, 'exc', node_exc)
if node_exc is None:
# Reraising the current exception, so we have to report this line.

new_nodes.insert(0, self._create_context_call(
Expand Down

0 comments on commit 72d4d04

Please sign in to comment.