Skip to content

Commit

Permalink
Flush if keyboard interrupted.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjunSahlot committed Apr 1, 2021
1 parent a85cf26 commit cacd85d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions supervised/datagen.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def main():
positions += 1
log(f"Analyzed {positions} positions.")
except KeyboardInterrupt:
file.flush()
print("Terminated")
break

Expand Down

0 comments on commit cacd85d

Please sign in to comment.