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 crash during upload if connection reset #26

Merged
merged 1 commit into from
Jan 5, 2020
Merged

Fix crash during upload if connection reset #26

merged 1 commit into from
Jan 5, 2020

Conversation

alexnederlof
Copy link

When any exception occurs during upload, it tries to print the exception to click.echo. However, the second argument of click.echo is a file that you want to write to. The exception was passed instead, which is not a file, which is was caused the type object 'ConnectionClosedError' has no attribute 'write'). As a fix, we now print the exception using normal string formatting.

Closes #23

When any exception occurs during upload, it tries to print the exception to `click.echo`. However, the second argument of `click.echo` is a file that you want to write to. The exception was passed instead, which is not a file, which is was caused the `type object 'ConnectionClosedError' has no attribute 'write')`. As a fix, we now print the exception using normal string formatting.

Closes #23
@tbumi
Copy link
Owner

tbumi commented Jan 5, 2020

Thanks for the PR! Will merge it.

@tbumi tbumi merged commit 20454d5 into tbumi:develop Jan 5, 2020
@alexnederlof alexnederlof deleted the patch-1 branch January 27, 2020 11:10
@AJIOB AJIOB mentioned this pull request Feb 21, 2022
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.

Exception occured: AttributeError("type object 'ConnectionClosedError' has no attribute 'write'",)
2 participants