Permalink
Browse files

Fix the toJSON plugin to work with revised Color class.

  • Loading branch information...
1 parent 0010b91 commit c3e3c4581d69fc2625d72eedb2be0508e837302e @GraylinKim committed Mar 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 sc2reader/plugins/replay.py
@@ -46,7 +46,7 @@ def toDict(replay):
})
players.append({
'avg_apm': getattr(player, 'avg_apm', None),
- 'color': getattr(player, 'color', None),
+ 'color': player.color.__dict__ if hasattr(player, 'color') else None,
'name': getattr(player, 'name', None),
'pick_race': getattr(player, 'pick_race', None),
'pid': getattr(player, 'pid', None),

0 comments on commit c3e3c45

Please sign in to comment.