diff --git a/reporting/srcframes2ans b/reporting/srcframes2ans index 7c417de..b4521ba 100755 --- a/reporting/srcframes2ans +++ b/reporting/srcframes2ans @@ -227,6 +227,7 @@ Outputs:'''.encode('utf-8') bc=bc() opts=setup_options() f=open_data_file(opts) +endoffile=False if opts.clear: bc.clear() if opts.test_image: @@ -246,6 +247,10 @@ while True: row=row.decode('utf-8').rstrip("\n\r") if row.startswith(NEWIMAGE): break + if row.startswith(ENDOFFILE): + endoffile=True + if endoffile: + break if row.startswith(PAUSE): try: new_value=row[len(PAUSE):].strip()