We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
There is a chance of a KeyError here:
janeway/src/repository/forms.py
Lines 62 to 63 in 78298b2
Internal Server Error: /elr/repository/manager/3/edit/metadata/ Traceback (most recent call last): File "/home/joemull/git/janedb/venv/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ File "/home/joemull/git/janedb/venv/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/joemull/git/janedb/src/security/decorators.py", line 72, in wrapper return func(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/joemull/git/janedb/src/security/decorators.py", line 1245, in wrapper return func(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/joemull/git/janedb/src/repository/views.py", line 1027, in repository_edit_metadata metadata_form = forms.PreprintInfo( ^^^^^^^^^^^^^^^^^^^ File "/home/joemull/git/janedb/src/repository/forms.py", line 63, in __init__ self.fields['submission_agreement'].initial = True ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ KeyError: 'submission_agreement'
Janeway version 1.7.0
Proposed solution Check for the existence of the field, as it could have been popped off right above.
The text was updated successfully, but these errors were encountered:
fix #4585 avoid KeyError
6ccfaaf
joemull
Successfully merging a pull request may close this issue.
Describe the bug
There is a chance of a KeyError here:
janeway/src/repository/forms.py
Lines 62 to 63 in 78298b2
Janeway version
1.7.0
Proposed solution
Check for the existence of the field, as it could have been popped off right above.
The text was updated successfully, but these errors were encountered: