Skip to content

Conversation

dilyanpalauzov
Copy link
Contributor

No description provided.

@WhyNotHugo WhyNotHugo force-pushed the simplify_return branch 3 times, most recently from 1cf6287 to 141623c Compare August 29, 2025 07:46
@WhyNotHugo WhyNotHugo merged commit 2f548e0 into pimutils:main Aug 29, 2025
2 of 5 checks passed
@WhyNotHugo
Copy link
Member

Rebased and applied. Thanks.

@@ -59,21 +59,20 @@ async def collections_for_pair(
cache_key = _get_collections_cache_key(pair)
if from_cache:
rv = load_status(status_path, pair.name, data_type="collections")
if rv.get("cache_key", None) == cache_key:
if rv and rv.get("cache_key", None) == cache_key:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this change form me and is it necessary? The other changes here do not modify the program logic, that is they preserve all the bugs. But this change modifies the program logic.

Copy link
Member

Choose a reason for hiding this comment

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

This change was from your original commit.

When I reviewed this earlier the change made sense to me because of the following elif rv. I realise now that it is unnecessary. It should not change the logic, assuming that rv is never None.

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