Purdue-EBEC / generic-grader

A collection of parameterizable tests for automatic grading.
GNU General Public License v3.0
0 stars 1 forks source link

The hint for failed imports is misleading. #81

Open jhcole opened 2 months ago

jhcole commented 2 months ago

This import failed because a different missing file.

image

It would be better to provide the line of code that caused the error.

image

The Python_2 folder only existed in the student's local directory structure.

https://www.gradescope.com/courses/827708/assignments/4752373/submissions/266673959#

jscarfo11 commented 3 weeks ago

This can be fixed by changing this except block to extract the information from the traceback instead of blindly assuming it is the students module that we could not find.