mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
Fix serialization error when ManifestException is thrown
("__init__() takes at least 3 arguments (2 given)")
This commit is contained in:
parent
c18e8800b5
commit
7f4d46a330
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,7 @@ class ManifestError(Exception):
|
|||
self.message = message
|
||||
self.manifest_path = manifest_path
|
||||
self.data_path = data_path
|
||||
self.args = (self.message, self.manifest_path, self.data_path)
|
||||
|
||||
def __str__(self):
|
||||
if self.data_path is not None:
|
||||
|
@ -19,6 +20,7 @@ class TaskListError(Exception):
|
|||
def __init__(self, message):
|
||||
super(TaskListError, self).__init__(message)
|
||||
self.message = message
|
||||
self.args = (self.message,)
|
||||
|
||||
def __str__(self):
|
||||
return 'Error in tasklist: ' + self.message
|
||||
|
|
Loading…
Add table
Reference in a new issue