Skip to content

Commit

Permalink
Another crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvbl committed Jun 28, 2017
1 parent 329941a commit 24f788c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,9 @@ def dumpOnlineTestAnswerTable(institution, session, dumpDirectory, results_root_
table_headers.append(table_header.text_content())
table_header_classes.append(table_header.get('class'))
continue
# If the table row lacks cells on the first data row, the table is empty.
if index == 2 and len(table_row) == 1:
break
# The remainder of the table rows are attempts we want to save.
attempt_file_contents = ''

Expand Down

0 comments on commit 24f788c

Please sign in to comment.