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 SkipRepeatsQueue._put() raises AttributeError (#817) #818

Merged
merged 2 commits into from Jul 28, 2021

Conversation

AndreiB97
Copy link
Contributor

This fixes an issue with SkipRepeatsQueue._put() which causes it to raise
an AttributeError on the first put. This is done by adding a check to test
if _last_item is set to None, which is the value set by __init__()

Issue: #817

@BoboTiG
Copy link
Collaborator

BoboTiG commented Jul 18, 2021

Do you mind adding a regression test?

This fixes an issue with SkipRepeatsQueue._put() which causes it to raise
an AttributeError on the first put. This is done by adding a check to test
if _last_item is set to None, which is the value set by __init__()
@AndreiB97
Copy link
Contributor Author

I have added a test to check for this to the commit.

@BoboTiG BoboTiG merged commit 384dfea into gorakhargosh:master Jul 28, 2021
@BoboTiG
Copy link
Collaborator

BoboTiG commented Jul 28, 2021

Thanks @AndreiB97 :)

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

2 participants