Commit 325d3bb
committed
Fix TypeError when using F2 without some source
File "/usr/lib/python3.5/site-packages/bpython/cli.py", line 977, in p_key
self.statusbar.message(_(e))
File "/usr/lib/python3.5/site-packages/bpython/cli.py", line 1605, in message
self.settext(s)
File "/usr/lib/python3.5/site-packages/bpython/cli.py", line 1655, in settext
if len(s) >= self.w:
TypeError: object of type 'SourceNotFound' has no len()
This also adjust the string formatting in `bpython/curtsiesfrontend/repl.py`.1 parent 69d3480 commit 325d3bb
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
974 | 974 | | |
975 | 975 | | |
976 | 976 | | |
977 | | - | |
| 977 | + | |
978 | 978 | | |
979 | 979 | | |
980 | 980 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1682 | 1682 | | |
1683 | 1683 | | |
1684 | 1684 | | |
1685 | | - | |
| 1685 | + | |
1686 | 1686 | | |
1687 | 1687 | | |
1688 | 1688 | | |
| |||
0 commit comments