Skip to content

Commit 52ddc8e

Browse files
committed
Clears up issues around OrderedDict in the code
1 parent 6c50756 commit 52ddc8e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sc2reader/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
from collections import OrderedDict
33
except ImportError:
44
from ordereddict import OrderedDict
5+
except ImportError:
6+
from sys import exit
7+
exit("OrderedDict required: Upgrade to python2.7 or `pip install ordereddict`")
58

69
from sc2reader.objects import Replay
710
from sc2reader.processors import *

0 commit comments

Comments
 (0)