mirror of
https://github.com/jtesta/ssh-audit.git
synced 2026-05-25 07:21:23 +02:00
Fixed pylint warnings.
This commit is contained in:
@@ -118,14 +118,14 @@ class Utils:
|
||||
def parse_int(v: Any) -> int:
|
||||
try:
|
||||
return int(v)
|
||||
except Exception: # pylint: disable=bare-except
|
||||
except ValueError:
|
||||
return 0
|
||||
|
||||
@staticmethod
|
||||
def parse_float(v: Any) -> float:
|
||||
try:
|
||||
return float(v)
|
||||
except Exception: # pylint: disable=bare-except
|
||||
except ValueError:
|
||||
return -1.0
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user