Spitfire1970 commited on
Commit
c1aa6f5
·
1 Parent(s): b77b874
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -191,7 +191,7 @@ class EndpointHandler():
191
 
192
  l = []
193
  while True:
194
- game = chess.pgn.read_game(pgn_content)
195
  if game is None:
196
  print("breaking main loop")
197
  break
 
191
 
192
  l = []
193
  while True:
194
+ game = chess.pgn.read_game(io.StringIO(pgn_content))
195
  if game is None:
196
  print("breaking main loop")
197
  break