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

Channel model breaks when channel has no owner #17

Open
33mhz opened this issue Sep 17, 2023 · 0 comments
Open

Channel model breaks when channel has no owner #17

33mhz opened this issue Sep 17, 2023 · 0 comments
Labels

Comments

@33mhz
Copy link
Contributor

33mhz commented Sep 17, 2023

Found in bazbt3/PigPen#48.

A channel might not have an owner included, e.g., if the user deleted their account. But the library tries to map a user object no matter what. https://github.com/pnut-api/PNUTpy/blob/master/pnutpy/models.py#L295

Docs ref to channel.owner: https://github.com/pnut-api/api-spec/blob/3187b456029e8afe43388b3d963ce1b03399e71d/resources/channels/index.md

This is an embedded User object. Note: In certain cases (e.g., when a user account has been deleted), this key may be omitted.
@33mhz 33mhz added the bug label Sep 17, 2023
spacenerdmo added a commit to spacenerdmo/PNUTpy that referenced this issue Nov 29, 2024
When a user account is deleted, the channels which they owned may still
exist without a user object associated as the owner.

Issue pnut-api#17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant