mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-23 14:41:43 +00:00
Merge pull request #1457 from ThomasWaldmann/explain-compat-typeerror
explain the confusing TypeError, fixes #1456
This commit is contained in:
commit
6bf48bbf67
1 changed files with 10 additions and 0 deletions
|
@ -185,6 +185,16 @@ def __init__(self, location, create=False, exclusive=False, lock_wait=None, lock
|
||||||
except self.RPCError as err:
|
except self.RPCError as err:
|
||||||
if err.remote_type != 'TypeError':
|
if err.remote_type != 'TypeError':
|
||||||
raise
|
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:
|
if append_only:
|
||||||
raise self.NoAppendOnlyOnServer()
|
raise self.NoAppendOnlyOnServer()
|
||||||
self.id = self.call('open', self.location.path, create, lock_wait, lock)
|
self.id = self.call('open', self.location.path, create, lock_wait, lock)
|
||||||
|
|
Loading…
Reference in a new issue