Fixed pylint warnings.

This commit is contained in:
Joe Testa
2020-10-21 19:36:43 -04:00
parent 85c0f854e3
commit 0cb3127482
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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