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 for issue 6136 #6172

Closed
wants to merge 3 commits into from
Closed

Conversation

derekk10
Copy link

@derekk10 derekk10 commented Dec 5, 2023

Resolve issue #6136.

Added a method for the crawler class called retrieve_stats() that performs the necessary assertion to check if the stat field is not none and then returns crawler.stats. This removes the need to add an assert statement every time crawler.stats needs to be accessed. Additionally, most instances of crawler.stats has been replaced with crawler.retrieve_stats() so that the assertion is performed automatically.

@wRAR
Copy link
Member

wRAR commented Dec 5, 2023

#6136 is not about stats, it's about a general solution to this that doesn't invove changing all the code. And you didn't even review your changes.

@wRAR wRAR closed this Dec 5, 2023
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.

None yet

3 participants