浏览代码

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

Martin Hostettler 8 年之前
父节点
当前提交
6c1b337ce2
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/borg/remote.py

+ 4 - 4
src/borg/remote.py

@@ -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)