1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-01 12:45:34 +00:00

refactor set_ec usage

- msgpack version check: raise Error instead of calling set_ec
This commit is contained in:
Thomas Waldmann 2023-11-12 20:01:14 +01:00
parent bec02a36c8
commit cb8b718a96
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -498,7 +498,7 @@ def run(self, args):
logger.error("You do not have a supported version of the msgpack python package installed. Terminating.")
logger.error("This should never happen as specific, supported versions are required by our pyproject.toml.")
logger.error("Do not contact borgbackup support about this.")
return set_ec(EXIT_ERROR)
raise Error("unsupported msgpack version")
if is_slow_msgpack():
logger.warning(PURE_PYTHON_MSGPACK_WARNING)
if args.debug_profile: