Show More
@@ -265,12 +265,6 b' class ParseError(Abort):' | |||
|
265 | 265 | def __init__(self, message, location=None, hint=None): |
|
266 | 266 | super(ParseError, self).__init__(message, hint=hint) |
|
267 | 267 | self.location = location |
|
268 | # Pass the message and possibly location into the Exception constructor | |
|
269 | # to help code that looks for exc.args. | |
|
270 | if location is not None: | |
|
271 | Exception.__init__(self, message, location) | |
|
272 | else: | |
|
273 | Exception.__init__(self, message) | |
|
274 | 268 | |
|
275 | 269 | def format(self): |
|
276 | 270 | from .i18n import _ |
General Comments 0
You need to be logged in to leave comments.
Login now