This repository was archived by the owner on Jun 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -1200,8 +1200,8 @@ Yet another is that there is an internal error. The internal error message is:
12001200 div_id : this . divid ,
12011201 code : this . editor . getValue ( ) ,
12021202 language : this . language ,
1203- errinfo : this . errinfo ,
1204- to_save : this . saveCode ,
1203+ errinfo : this . errinfo || "" ,
1204+ to_save : this . saveCode || "F" ,
12051205 prefix : this . pretext ,
12061206 suffix : this . suffix ,
12071207 partner : this . partner ,
Original file line number Diff line number Diff line change @@ -215,8 +215,8 @@ export default class FITB extends RunestoneBase {
215215 } ) ;
216216 let data = {
217217 event : "fillb" ,
218- act : answer ,
219- answer : answer ,
218+ act : answer || "" ,
219+ answer : answer || "" ,
220220 correct : this . correct ? "T" : "F" ,
221221 div_id : this . divid ,
222222 } ;
Original file line number Diff line number Diff line change @@ -108,8 +108,12 @@ class GroupSub extends RunestoneBase {
108108 } ) ;
109109 for ( let student of group ) {
110110 for ( let question of window . allComponents ) {
111- console . log ( `${ student } ${ question } ` )
112- await question . logCurrentAnswer ( student )
111+ try {
112+ console . log ( `${ student } ${ question } ` )
113+ await question . logCurrentAnswer ( student )
114+ } catch ( e ) {
115+ console . log ( `failed to submit ${ question } : ${ e } ` )
116+ }
113117 }
114118 }
115119
You can’t perform that action at this time.
0 commit comments