Skip to content

Commit 44810ef

Browse files
committed
Add new exception [skip ci]
1 parent caf3c96 commit 44810ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/charms/postgresql_k8s/v0/postgresql_tls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def is_ip_address(address: str) -> bool:
174174
try:
175175
ipaddress.ip_address(address)
176176
return True
177-
except ValueError:
177+
except (ipaddress.AddressValueError, ValueError):
178178
return False
179179

180180
unit_id = self.charm.unit.name.split("/")[1]

0 commit comments

Comments
 (0)