-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fixes #2990 and #2518. Avoid AttributeError when awscli is invoked fr… #2991
Conversation
I don't think simply making it |
Making the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A NoneType
exception is not a good experience for a user of a cli tool. The fact that sys.stdin
itself will be None
just means that we should also do something like this for normal stdin.
There may be a misunderstanding here. First, one thing to clarify is that I represent a customer of AWS. Our company pays hundreds of thousands of dollars for the privilege to use your services. It is my understanding that you are a paid employee or contractor of AWS. Like other paying customers, we have encountered an error in the aws-cli software. We have helpfully, at our own expense, provided you with a minimal, no-risk solution. Let us analyze the line of code to ensure there is no misunderstanding there… Before merging this PR:
After merging this PR:
This is simple, a trivial fix.
In case 1: In case 2, both Before and After have the same result. binary_stdin is safely set to sys.stdin.buffer. All is well. I could challenge your statement that this fix is not “the best”, but I believe it is irrelevant. In the before case the software breaks; we are not getting from you what we pay for. In the after case your software works, we get what we pay for. There are no drawbacks; there are no excuses for your inaction. I will not comment further. I will not change this PR. Our next step, if this issue is not addressed, will be to mention it to our AWS account manager and open a business support case. Please, as your humble customer, I beg you… merge it now. |
…om python3 daemon.