Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Talk update code assumes that .getAbstract() always returns an object #1447

Open
malemburg opened this issue Jun 29, 2021 · 2 comments
Open

Comments

@malemburg
Copy link
Member

Traceback:

File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py" in inner
  34.             response = get_response(request)

File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response
  115.                 response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response
  113.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python3.8/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  21.                 return view_func(request, *args, **kwargs)

File "/usr/src/ep2021/conference/talks.py" in update_talk
  54.     talk_update_form = TalkUpdateForm(instance=talk)

File "/usr/src/ep2021/conference/forms/talks.py" in __init__
  43.             self.fields["abstract"].initial = kwargs["instance"].getAbstract().body

Exception Type: AttributeError at /talks/python-packaging/update/
Exception Value: 'NoneType' object has no attribute 'body'
@malemburg
Copy link
Member Author

The talk which caused this traceback is https://ep2021.europython.eu/admin/conference/talk/2424/change/

It does have an abstract and speaker. The only detail which is odd is that the "Created by" is None.

@hypha
Copy link

hypha commented Jun 29, 2021 via email

@fpierfed fpierfed added 2022 and removed 2021 labels Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants