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

wrong assignmentname crash umbridge #14

Open
AndreasArne opened this issue Oct 17, 2022 · 1 comment
Open

wrong assignmentname crash umbridge #14

AndreasArne opened this issue Oct 17, 2022 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@AndreasArne
Copy link
Member

If an assignemnts name does not exist in assignment_folders, it will crash and stop umbirdge from doing any correcting.

File "/home/deploy/umbridge/app/eve/models/course_manager.py", line 181, in copy_and_zip_student_code                    
src_folders = self.get_config_from_course_by_key("assignment_folders")[self.assignment_name]                           
KeyError: 'kmom07/10'  

Handle it!

@AndreasArne AndreasArne added bug Something isn't working good first issue Good for newcomers labels Oct 17, 2022
@AndreasArne
Copy link
Member Author

AndreasArne commented Oct 17, 2022

Related error when fetching submissions in python

 File "/home/deploy/umbridge/app/wall_e/models/canvas_api.py", line 97, in get_assignment_name_by_id                      
name = self._config[self._course_name]['canvas_name_to_assignment'].get(                                               
KeyError: 'canvas_name_to_assignment'

*** fixed by adding key "canvas_name_to_assignment" to python in settings. This should not be needed. It should use the one in default instead. I think there is another issue up about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant