Skip to content

Commit 02d9984

Browse files
author
Marien Zwart
committed
Fix a traceback on exit in bpython.urwid.
1 parent 6367a85 commit 02d9984

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bpython/urwid.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,8 @@ def __init__(self, event_loop, palette, interpreter, config):
624624
self.current_output = None
625625
self._completion_update_suppressed = False
626626

627-
self.exit_value = None
627+
# Bulletproof: this is a value extract_exit_value accepts.
628+
self.exit_value = ()
628629

629630
load_urwid_command_map(config)
630631

0 commit comments

Comments
 (0)