Skip to content

Commit

Permalink
ConversionUtils().bgp_as_is_valid(): Fix PEP8 bare except
Browse files Browse the repository at this point in the history
  • Loading branch information
allenrobel committed Apr 22, 2024
1 parent cc41eb8 commit 3f518d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/common/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def bgp_as_is_valid(self, value):
return False
try:
asn = str(value)
except:
except UnicodeEncodeError:
msg = f"BGP ASN ({value}) could not be converted to a string."
self.bgp_as_invalid_reason = msg
return False
Expand Down

0 comments on commit 3f518d7

Please sign in to comment.