We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0582f35 + 9b49e43 commit 8a7c025Copy full SHA for 8a7c025
1 file changed
pyalloc/allocator.py
@@ -36,10 +36,10 @@ def allocate(self) -> str:
36
ip_str = str(ip)
37
if ip_str not in self.allocated:
38
self.allocated.add(ip_str)
39
- logger.info(f"Allocated IP: {ip_str}")
+ logger.info("Allocated IP %s", ip_str)
40
return ip_str
41
-
42
- raise RuntimeError(f"No free IP addresses in {self.network}")
+
+ raise RuntimeError("No free IP addresses")
43
44
def release(self, ip: str) -> bool:
45
"""Release an allocated IP address.
0 commit comments