config : reraise exception instead of raising a new one

This commit is contained in:
2026-01-28 16:19:30 +01:00
parent 68c03c18d5
commit 405e978796

View File

@@ -30,8 +30,8 @@ class ServerConfig:
if self.ip != "":
try:
ipaddress.ip_address(self.ip)
except ValueError:
raise ValueError("The provided ip address is invalid")
except ValueError as e:
raise ValueError("The provided ip address is invalid") from e
@dataclass
class RootsConfig: