MCPcopy
hub / github.com/borgbackup/borg / UnexpectedRPCDataFormatFromServer

Class UnexpectedRPCDataFormatFromServer

src/borg/remote.py:85–97  ·  view source on GitHub ↗

Got unexpected RPC data format from server:\n{}

Source from the content-addressed store, hash-verified

83
84
85class UnexpectedRPCDataFormatFromServer(Error):
86 """Got unexpected RPC data format from server:\n{}"""
87
88 exit_mcode = 86
89
90 def __init__(self, data):
91 try:
92 data = data.decode()[:128]
93 except UnicodeDecodeError:
94 data = data[:128]
95 data = ["%02X" % byte for byte in data]
96 data = textwrap.fill(" ".join(data), 16 * 3)
97 super().__init__(data)
98
99
100class ConnectionBrokenWithHint(Error):

Callers 1

call_manyMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected