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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy