-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Remove deprecated spider parameter #5589
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5589 +/- ##
==========================================
+ Coverage 88.66% 88.83% +0.16%
==========================================
Files 162 162
Lines 10995 10996 +1
Branches 1799 1800 +1
==========================================
+ Hits 9749 9768 +19
+ Misses 966 948 -18
Partials 280 280
|
The error in CI is not related with the change made. |
If I'm not mistaken, this parameter is deprecated in #5090; it was released with Scrapy 2.6.0 (https://docs.scrapy.org/en/latest/news.html#scrapy-2-6-0-2022-03-01), which happened 2022-03-01. According to https://docs.scrapy.org/en/latest/versioning.html#deprecation-policy, we promise at least one year before the deprecated code is removed, so unfortunately we can't remove it now. |
Instead, we need to capture and silence that warning when triggered by our own code. |
@Gallaecio I will update the code to this approach. |
I would like to first understand why it is happening in the first place, though. Maybe there is a better way. |
OK, so I think we need to change
Hopefully that solves the issue without undesired side effects. |
@Gallaecio Hope i getted it the idea. |
…er value from self if `None`
Looks good to me, thanks! 🚀 How do you feel about test coverage? Do you think you can add at least a test to verify that the exception is not logged with default settings? If you do not see it clearly, I can try and have a look later. |
I'm on vacation, if you can add tests i will be glad, thanks! |
Thanks for this fix. It worked great! |
Thanks @Laerte for keeping the PR up-to-date, this helps a lot! |
Closes #5588