Fixed the error that's been swallowing exception messages

Finally!
Becuase "TypeError: __init__() takes at least 3 arguments (2 given)"
is not very useful...
This commit is contained in:
Anders Ingemann 2015-12-13 19:31:39 +01:00
parent d6e504d388
commit 02860de849

View file

@ -1,7 +1,7 @@
class ManifestError(Exception):
def __init__(self, message, manifest_path, data_path=None):
def __init__(self, message, manifest_path=None, data_path=None):
super(ManifestError, self).__init__(message)
self.message = message
self.manifest_path = manifest_path