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
Expected behavior (A description of what you expected to happen) :
While setting up local development via LTI, inserting data using the cron job script (instructions) should result in data being imported into local mySQL for myLA.
Describe the bug (Tell us what happens instead of the expected behavior) :
I created my own course in beta to test the LTI integration, but when running the cron job, one of the errors I encountered was local variable 'exception_in_run' referenced before assignment. This was a result of the script skipping course-related table updates for my newly created course, resulting in the else condition not proceeding with creating the exception_in_run variable. Identify why the newly created course was invalid and properly handle this case: either throw a descriptive error or continue the script with the singular course if it should be valid in this conditional code.
Steps to Reproduce :
Create a new course that is unpublished in canvas beta, follow all steps to configure your local instance of MyLA via LTI.
Check the django_cron_cronjoblog table in MySQL for a full description of the logged errors.
Screenshots/Video (If possible, add media to help explain your problem) :
Additional context (Add any other context about the problem here) :
It is possible that this relates to other issues I had during set up. One step I had to take was to reset my data by deleting the local .data folder before restarting my server, so this may be a step needed to reproduce this issue.
The text was updated successfully, but these errors were encountered:
jaydonkrooss
changed the title
(LTI Setup) local variable 'exception_in_run' referenced before assignment
(LTI Setup) Cron fails when valid courses are 0: local variable 'exception_in_run' referenced before assignment
Oct 18, 2023
Expected behavior (A description of what you expected to happen) :
While setting up local development via LTI, inserting data using the cron job script (instructions) should result in data being imported into local mySQL for myLA.
Describe the bug (Tell us what happens instead of the expected behavior) :
I created my own course in beta to test the LTI integration, but when running the cron job, one of the errors I encountered was
local variable 'exception_in_run' referenced before assignment
. This was a result of the script skipping course-related table updates for my newly created course, resulting in the else condition not proceeding with creating the exception_in_run variable. Identify why the newly created course was invalid and properly handle this case: either throw a descriptive error or continue the script with the singular course if it should be valid in this conditional code.Steps to Reproduce :
Screenshots/Video (If possible, add media to help explain your problem) :
Additional context (Add any other context about the problem here) :
It is possible that this relates to other issues I had during set up. One step I had to take was to reset my data by deleting the local .data folder before restarting my server, so this may be a step needed to reproduce this issue.
The text was updated successfully, but these errors were encountered: