Skip to content

Commit

Permalink
Replace non-existing function.
Browse files Browse the repository at this point in the history
This was forgotten as part of an earlier pass, when safe_unicode (py2
compat) was removed. safe_unicode is undefiled now and would lead to
crash.

Part of the ipython#717 PR-group.
  • Loading branch information
Carreau committed Jul 12, 2021
1 parent b2f1a79 commit 16397ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ipykernel/ipkernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,9 @@ def do_apply(self, content, bufs, msg_id, reply_metadata):
# invoke IPython traceback formatting
shell.showtraceback()
reply_content = {
'traceback': shell._last_traceback or [],
'ename': str(type(e).__name__),
'evalue': safe_unicode(e),
"traceback": shell._last_traceback or [],
"ename": str(type(e).__name__),
"evalue": str(e),
}
# FIXME: deprecated piece for ipyparallel (remove in 5.0):
e_info = dict(engine_uuid=self.ident, engine_id=self.int_id, method='apply')
Expand Down

0 comments on commit 16397ee

Please sign in to comment.