You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if a student's code crashes in check50:
:( lines.py yields 2058 given 2058 lines of code in an open-source library file
expected: "2058"
actual: "Traceback ..."
It would be much more helpful to us all if the Traceback was either shown in its entirely, or somehow interpreted to give the user better help.
Note in this example, the actual traceback was:
Traceback (most recent call last):
File "/workspaces/6343970/cs50p/lines/lines.py", line 18, in <module>
if line.strip()[0] != '#':
~~~~~~~~~~~~^^^
IndexError: string index out of range
Maybe we can capture that IndexError? Or perhaps simply displaying the entire Traceback is more realistic.