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 empty response handling in get_all_buckets #11

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

jefferlu
Copy link
Contributor

@jefferlu jefferlu commented Feb 9, 2025

Description:
An issue where get_all_buckets fails when the Data Management API returns an empty items list ({'items': []}). Previously, the method attempted to access createdDate, causing a KeyError.

Changes:
Added a check for an empty DataFrame (df.empty) and return it immediately.

Impact:
Prevents errors when the API returns no data.

@chuongmep
Copy link
Owner

Hi @jefferlu , good catch, thank you for your fix issue !

@chuongmep chuongmep merged commit b0a81ef into chuongmep:dev Feb 10, 2025
2 of 3 checks passed
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