mirror of
				https://github.com/jtesta/ssh-audit.git
				synced 2025-10-31 17:41:02 +01:00 
			
		
		
		
	Fixed pylint warnings.
This commit is contained in:
		| @@ -29,7 +29,7 @@ from datetime import date | |||||||
|  |  | ||||||
| from ssh_audit import exitcodes | from ssh_audit import exitcodes | ||||||
| from ssh_audit.ssh2_kex import SSH2_Kex  # pylint: disable=unused-import | from ssh_audit.ssh2_kex import SSH2_Kex  # pylint: disable=unused-import | ||||||
| from ssh_audit.banner import Banner | from ssh_audit.banner import Banner  # pylint: disable=unused-import | ||||||
|  |  | ||||||
|  |  | ||||||
| # Validates policy files and performs policy testing | # Validates policy files and performs policy testing | ||||||
|   | |||||||
| @@ -118,14 +118,14 @@ class Utils: | |||||||
|     def parse_int(v: Any) -> int: |     def parse_int(v: Any) -> int: | ||||||
|         try: |         try: | ||||||
|             return int(v) |             return int(v) | ||||||
|         except Exception:  # pylint: disable=bare-except |         except ValueError: | ||||||
|             return 0 |             return 0 | ||||||
|  |  | ||||||
|     @staticmethod |     @staticmethod | ||||||
|     def parse_float(v: Any) -> float: |     def parse_float(v: Any) -> float: | ||||||
|         try: |         try: | ||||||
|             return float(v) |             return float(v) | ||||||
|         except Exception:  # pylint: disable=bare-except |         except ValueError: | ||||||
|             return -1.0 |             return -1.0 | ||||||
|  |  | ||||||
|     @staticmethod |     @staticmethod | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Joe Testa
					Joe Testa