inline all messages

This commit is contained in:
timeshifter
2022-12-06 15:15:43 +01:00
parent 28963c3e64
commit 530a1e090a
6 changed files with 13 additions and 30 deletions
+1 -3
View File
@@ -1,7 +1,5 @@
from __future__ import annotations
from zfs_backup.messages import NOT_VALID_ZFS_PATH
class ZFSPath:
"""Represents a path in ZFS.
@@ -79,4 +77,4 @@ class ZFSPath:
def _sanity_check(elements: list[str]) -> None:
for item in elements:
if len(item) == 0:
raise ValueError(NOT_VALID_ZFS_PATH)
raise ValueError("Not a valid ZFSPath")