Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TypeError when using F2 without some source #614

Merged
merged 1 commit into from Jun 2, 2016

Commits on Jun 2, 2016

  1. 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`.
    blueyed committed Jun 2, 2016
You can’t perform that action at this time.