Skip to content

Commit 8a7c025

Browse files
authored
Merge pull request #19 from TimInTech/codex/fix-indentation-in-allocator.py-function
Fix indentation for allocator logging
2 parents 0582f35 + 9b49e43 commit 8a7c025

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pyalloc/allocator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ def allocate(self) -> str:
3636
ip_str = str(ip)
3737
if ip_str not in self.allocated:
3838
self.allocated.add(ip_str)
39-
logger.info(f"Allocated IP: {ip_str}")
39+
logger.info("Allocated IP %s", ip_str)
4040
return ip_str
41-
42-
raise RuntimeError(f"No free IP addresses in {self.network}")
41+
42+
raise RuntimeError("No free IP addresses")
4343

4444
def release(self, ip: str) -> bool:
4545
"""Release an allocated IP address.

0 commit comments

Comments
 (0)