Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

fix: Removing items during validation breaks validation #277

Merged
merged 1 commit into from
May 18, 2021

Conversation

TerryGeng
Copy link
Collaborator

Fix #266.

@TerryGeng
Copy link
Collaborator Author

@mweinelt Would you help me check if this quick fix solved your issue?

@@ -142,7 +146,7 @@ def item(self):
if self.id in self.lib:
return self.lib[self.id]
else:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything after the return is automatically an else block.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it does no harm to explicitly use an else statement :)

@mweinelt
Copy link
Contributor

Haven't seen the issue again so far.

@TerryGeng
Copy link
Collaborator Author

Great! Thanks for testing.

@TerryGeng TerryGeng merged commit 32191bf into azlux:master May 18, 2021
@TerryGeng TerryGeng deleted the uncached branch May 24, 2021 01:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ValueError: Uncached item of id $id in media/cache.py
2 participants