Skip to content

Fix SkipRepeatsQueue._put() raises AttributeError (#817)#818

Merged
BoboTiG merged 2 commits into
gorakhargosh:masterfrom
AndreiB97:master
Jul 28, 2021
Merged

Fix SkipRepeatsQueue._put() raises AttributeError (#817)#818
BoboTiG merged 2 commits into
gorakhargosh:masterfrom
AndreiB97:master

Conversation

@AndreiB97

Copy link
Copy Markdown
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

BoboTiG commented Jul 18, 2021

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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

BoboTiG commented Jul 28, 2021

Copy link
Copy Markdown
Collaborator

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.

2 participants