Skip to content

Commit d9577a0

Browse files
author
Aki Vänttinen
committed
crash fix
1 parent 422d6de commit d9577a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ladder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import sc2
1717
from sc2.data import Race, Difficulty
1818
from sc2.player import Computer, Human
19-
from sc2.protocol import ConnectionAlreadyClosed
19+
from sc2.protocol import ConnectionAlreadyClosedError
2020
from sharpy.tools import LoggingUtility
2121

2222

@@ -91,7 +91,7 @@ async def join_ladder_game(
9191
result = await sc2.main._play_game(players[0], client, realtime, portconfig, step_time_limit, game_time_limit)
9292
if save_replay_as is not None:
9393
await client.save_replay(save_replay_as)
94-
except ConnectionAlreadyClosed:
94+
except ConnectionAlreadyClosedError:
9595
logging.error(f"Connection was closed before the game ended")
9696
return None
9797
finally:

0 commit comments

Comments
 (0)