Fix NameError; annotations is not set when an exception is raised.

3 jobs for annotations-nameerror in 0 seconds (queued for 68 minutes and 31 seconds)
latest
Status Job ID Name Coverage
  Test
failed #19749
run-appdata

failed #19748
run-tests

 
  Build
skipped #19750
run-build
 
Name Stage Failure
failed
run-tests Test There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job log
failed
run-appdata Test There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job log