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

create: deal with EBUSY, fixes #8123

I put it into same class as EPERM and EACCES:
BackupPermissionError: borg is not permitted to access the file.
This commit is contained in:
Thomas Waldmann 2024-02-25 11:21:44 +01:00
parent db75521b79
commit eb79b1f13f
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -199,6 +199,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
E_MAP = {
errno.EPERM: BackupPermissionError,
errno.EACCES: BackupPermissionError,
errno.EBUSY: BackupPermissionError,
errno.ENOENT: BackupFileNotFoundError,
errno.EIO: BackupIOError,
}