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

"My Documents" view broken if an RfcToBe does not have a draft #90

Open
jennifer-richards opened this issue Jan 3, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jennifer-richards
Copy link
Member

If a document assigned to the currently logged-in user does not have a draft associated with it, an error results:

  File "/workspace/rpc/serializers.py", line 134, in get_name
    return rfc_to_be.draft.name
           ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'

This will come up with April 1 RFCs so must be sorted out for that case. It currently comes up with many drafts imported via the (WIP) DB xfer tool, though, and the code needs to handle this possibility better.

@jennifer-richards jennifer-richards added the bug Something isn't working label Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant