Skip to content

Commit a52a91e

Browse files
committed
Sorry. Use the same version as pypy's pyrepl.
1 parent 7dbc330 commit a52a91e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pyrepl/unix_console.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,12 @@ def push_char(self, char):
411411
e.args[4] == 'unexpected end of data':
412412
pass
413413
else:
414-
#raise -- but better to ignore UnicodeDecodeErrors here...
414+
# was: "raise". But it crashes pyrepl, and by extension the
415+
# pypy currently running, in which we are e.g. in the middle
416+
# of some debugging session. Argh. Instead just print an
417+
# error message to stderr and continue running, for now.
415418
self.partial_char = ''
416-
return
419+
sys.stderr.write('\n%s: %s\n' % (e.__class__.__name__, e))
417420
else:
418421
self.partial_char = ''
419422
self.event_queue.push(c)

0 commit comments

Comments
 (0)