config : reraise exception instead of raising a new one
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user