Fix Attribute error if matches_iter has not been initialised.#500
Closed
rgammans wants to merge 1 commit into
Closed
Fix Attribute error if matches_iter has not been initialised.#500rgammans wants to merge 1 commit into
rgammans wants to merge 1 commit into
Conversation
AttributeError: 'NoneType' object has no attribute 'format
Author
|
Ac |
Author
|
Whoops - I'm withdrawing this It something evil I'm doing outside of bpython. |
Member
|
@rgammans I'm curious as to what evil you're committing 🙊 but good to hear this isn't an issue if the class is used as expected. |
Author
|
The code in question is in this file:- If I comment out the call to DoPatches() then it works ok, other wise bpython tries to resolve doc for a MMAttribute method we get the backtrace I showed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I use bpython to provide CLI access to my database -style app (MysteryMachine ) ,
when entering a expression such as
When I enter the opening bracket I get the following stack trace and bpython exits.
Unfortunately I can't reprodcue it outside of my app, so I might have got soemthing else wrong , but it the attached pull requests fixes it and mackes sense to me - it seem odd that when the curses layer handles a completion event it doesn't re-run the match code in cli.CLI .