-
Notifications
You must be signed in to change notification settings - Fork 54
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
Make iexplore.downloads plugin more fail-safe #450
Make iexplore.downloads plugin more fail-safe #450
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #450 +/- ##
==========================================
- Coverage 73.90% 73.89% -0.01%
==========================================
Files 259 259
Lines 20838 20846 +8
==========================================
+ Hits 15400 15405 +5
- Misses 5438 5441 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Co-authored-by: Erik Schamper <[email protected]>
|
||
try: | ||
response_headers = container_record.ResponseHeaders.decode("utf-16-le", errors="ignore") | ||
ref_url, mime_type, temp_download_path, down_url, down_path = response_headers.split("\x00")[-6:-1] |
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.
To prevent future bugs, could you either initialize ref_url
, mime_type
and temp_download_path
to None
? Or replace those with _
and leave a comment explaining what those fields would be.
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.
Good one, changed it! Complemented the existing test as well, to prevent regression with the path/url value
No description provided.