From fc92822b6c5771ae56afd9472017d5aa7efeb95d Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 9 Aug 2016 17:35:27 +0200 Subject: [PATCH] explain the confusing TypeError, fixes #1456 --- borg/remote.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/borg/remote.py b/borg/remote.py index 47a20412b..3dda24133 100644 --- a/borg/remote.py +++ b/borg/remote.py @@ -185,6 +185,16 @@ class RemoteRepository: except self.RPCError as err: if err.remote_type != 'TypeError': raise + msg = """\ +Please note: +If you see a TypeError complaining about the number of positional arguments +given to open(), you can ignore it if it comes from a borg version < 1.0.7. +This TypeError is a cosmetic side effect of the compatibility code borg +clients >= 1.0.7 have to support older borg servers. +This problem will go away as soon as the server has been upgraded to 1.0.7+. +""" + # emit this msg in the same way as the "Remote: ..." lines that show the remote TypeError + sys.stderr.write(msg) if append_only: raise self.NoAppendOnlyOnServer() self.id = self.call('open', self.location.path, create, lock_wait, lock)