Skip to content

Commit 2f9c8cf

Browse files
committed
Change error message for empty string
1 parent 5b1143e commit 2f9c8cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ def get_source_of_current_name(self):
595595
if obj is None:
596596
line = self.current_line
597597
if line == "":
598-
raise ValueError("Cannot get source of an empty string")
598+
raise ValueError("Nothing to get source of")
599599
if inspection.is_eval_safe_name(line):
600600
obj = self.get_object(line)
601601
try:

0 commit comments

Comments
 (0)