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

Bad stdout #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Bad stdout #12

wants to merge 2 commits into from

Conversation

proind
Copy link

@proind proind commented Nov 3, 2016

the reason for this fix is slightly complicated :
when Running IDA Pro with and ipython plugin , ipython calls get_terminal_size when handling certain exceptions.
the probelm is that IDAPythonStdOut doesn't have an attribute fileno.
AttributeError is raised and not caught , and the iPython kernel crashes.
I think it makes sense to catch it here and return the default values .
would help with other cases where the stdout object is weird (even if it's not very common).

…ot defined, the default value will be returned
…ot defined, the default value will be returned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant