Skip to content

Commit 6d31d46

Browse files
committed
Add a fallthrough sourcecodenotfound message
1 parent 42f3e54 commit 6d31d46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bpython/repl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ def get_source_of_current_name(self):
594594
current name in the current input line. Throw `SourceNotFound` if the
595595
source cannot be found."""
596596
obj = self.current_func
597+
msg = "Unexpected error retrieving source code for %s" % (obj,)
597598
try:
598599
if obj is None:
599600
line = self.current_line

0 commit comments

Comments
 (0)