(
string: str,
e: str = 'could not convert string to int')
| 11 | |
| 12 | |
| 13 | def smart_string_to_int( |
| 14 | string: str, |
| 15 | e: str = 'could not convert string to int') -> int: |
| 16 | try: |
| 17 | ret = int(string) |
| 18 | return ret |
| 19 | except ValueError: |
| 20 | raise ValueError(e) |
| 21 | |
| 22 | |
| 23 | def parse_config( |