Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.
This repository was 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

Description

@malemburg

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions