Skip to content

Commit c3e3c45

Browse files
committed
Fix the toJSON plugin to work with revised Color class.
1 parent 0010b91 commit c3e3c45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sc2reader/plugins/replay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def toDict(replay):
4646
})
4747
players.append({
4848
'avg_apm': getattr(player, 'avg_apm', None),
49-
'color': getattr(player, 'color', None),
49+
'color': player.color.__dict__ if hasattr(player, 'color') else None,
5050
'name': getattr(player, 'name', None),
5151
'pick_race': getattr(player, 'pick_race', None),
5252
'pid': getattr(player, 'pid', None),

0 commit comments

Comments
 (0)