Skip to content

Commit 4c9dcac

Browse files
committed
Fix ReadError constructor.
1 parent 6452a65 commit 4c9dcac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sc2reader/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ class MultipleMatchingFilesError(SC2ReaderError):
1111
pass
1212

1313
class ReadError(SC2ReaderError):
14-
def __init__(self, msg, type, code, location, replay=None, game_events=[], buffer=None):
14+
def __init__(self, msg, type, location, replay=None, game_events=[], buffer=None):
1515
self.__dict__.update(locals())
1616
super(ReadError, self).__init__(msg)
1717

1818
def __str__(self):
19-
return "{0}, Type: {1}, Code: {2}".format(self.msg, self.type, self.code)
19+
return "{0}, Type: {1}".format(self.msg, self.type)
2020

2121
class ParseError(SC2ReaderError):
2222
pass

0 commit comments

Comments
 (0)