mirror of https://github.com/borgbackup/borg.git
remote: Replace broken exception argument restoration with code that uses a fixed value.
This commit is contained in:
parent
d25e9aa4f0
commit
6c1b337ce2
|
@ -371,13 +371,13 @@ This problem will go away as soon as the server has been upgraded to 1.0.7+.
|
||||||
elif error == 'CheckNeeded':
|
elif error == 'CheckNeeded':
|
||||||
raise Repository.CheckNeeded(self.location.orig)
|
raise Repository.CheckNeeded(self.location.orig)
|
||||||
elif error == 'IntegrityError':
|
elif error == 'IntegrityError':
|
||||||
raise IntegrityError(res)
|
raise IntegrityError('(not available)')
|
||||||
elif error == 'PathNotAllowed':
|
elif error == 'PathNotAllowed':
|
||||||
raise PathNotAllowed(*res)
|
raise PathNotAllowed()
|
||||||
elif error == 'ObjectNotFound':
|
elif error == 'ObjectNotFound':
|
||||||
raise Repository.ObjectNotFound(res[0], self.location.orig)
|
raise Repository.ObjectNotFound('(not available)', self.location.orig)
|
||||||
elif error == 'InvalidRPCMethod':
|
elif error == 'InvalidRPCMethod':
|
||||||
raise InvalidRPCMethod(*res)
|
raise InvalidRPCMethod('(not available)')
|
||||||
else:
|
else:
|
||||||
raise self.RPCError(res.decode('utf-8'), error)
|
raise self.RPCError(res.decode('utf-8'), error)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue