Skip to content

Commit

Permalink
Fix display of errors in compiled code on Python 3.
Browse files Browse the repository at this point in the history
Closes gh-1100
  • Loading branch information
takluyver authored and fperez committed Dec 6, 2011
1 parent 0040446 commit 411ba6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/core/ultratb.py
Expand Up @@ -879,7 +879,7 @@ def linereader(file=file, lnum=[lnum], getline=linecache.getline):
# enclosing scope.
for token in generate_tokens(linereader):
tokeneater(*token)
except IndexError:
except (IndexError, UnicodeDecodeError):
# signals exit of tokenizer
pass
except tokenize.TokenError,msg:
Expand Down

0 comments on commit 411ba6a

Please sign in to comment.