remote: Replace broken exception argument restoration with code that uses a fixed value.

This commit is contained in:
Martin Hostettler 2016-11-10 10:04:15 +01:00
parent d25e9aa4f0
commit 6c1b337ce2
1 changed files with 4 additions and 4 deletions

View File

@ -371,13 +371,13 @@ This problem will go away as soon as the server has been upgraded to 1.0.7+.
elif error == 'CheckNeeded':
raise Repository.CheckNeeded(self.location.orig)
elif error == 'IntegrityError':
raise IntegrityError(res)
raise IntegrityError('(not available)')
elif error == 'PathNotAllowed':
raise PathNotAllowed(*res)
raise PathNotAllowed()
elif error == 'ObjectNotFound':
raise Repository.ObjectNotFound(res[0], self.location.orig)
raise Repository.ObjectNotFound('(not available)', self.location.orig)
elif error == 'InvalidRPCMethod':
raise InvalidRPCMethod(*res)
raise InvalidRPCMethod('(not available)')
else:
raise self.RPCError(res.decode('utf-8'), error)