Skip to content

Commit

Permalink
Merge pull request #86 from digitalocean/fix-netaddr-ip-description
Browse files Browse the repository at this point in the history
Fixes #83 - Slashes in IP Description causes Exception
  • Loading branch information
Zach Moody authored Aug 3, 2018
2 parents 720f6b1 + bafc194 commit f450ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynetbox/lib/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def _parse_values(self, values):
if isinstance(v, six.string_types):
try:
v = netaddr.IPNetwork(v)
except netaddr.AddrFormatError:
except (netaddr.AddrFormatError, ValueError):
pass
self._add_cache((k, v))
else:
Expand Down

0 comments on commit f450ebf

Please sign in to comment.