Skip to content

Commit

Permalink
Merge pull request #10692 from jdemeyer/ultratb_unicode
Browse files Browse the repository at this point in the history
Fix unicode trouble in is_recursion_error()
  • Loading branch information
takluyver committed Jul 5, 2017
2 parents 0906b6f + ace81e3 commit 3a9fb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/core/ultratb.py
Expand Up @@ -438,7 +438,7 @@ def is_recursion_error(etype, value, records):
# by stack frames in IPython itself. >500 frames probably indicates
# a recursion error.
return (etype is recursion_error_type) \
and "recursion" in str(value).lower() \
and str("recursion") in str(value).lower() \
and len(records) > 500

def find_recursion(etype, value, records):
Expand Down

0 comments on commit 3a9fb22

Please sign in to comment.