We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dbc330 commit a52a91eCopy full SHA for a52a91e
pyrepl/unix_console.py
@@ -411,9 +411,12 @@ def push_char(self, char):
411
e.args[4] == 'unexpected end of data':
412
pass
413
else:
414
- #raise -- but better to ignore UnicodeDecodeErrors here...
+ # 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.
418
self.partial_char = ''
- return
419
+ sys.stderr.write('\n%s: %s\n' % (e.__class__.__name__, e))
420
421
422
self.event_queue.push(c)
0 commit comments