wifi rates fix

This commit is contained in:
Arseniy Kuznetsov
2021-11-08 16:22:04 +01:00
parent 1e43941a72
commit f2ec73a3ce
2 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ class BaseOutputProcessor:
wifi_rates_rgx = re.compile(r'(\d*(?:\.\d*)?)([GgMmKk]bps?)')
config_handler.re_compiled['wifi_rates_rgx'] = wifi_rates_rgx
rc = wifi_rates_rgx.search(rate)
return f'{int(float(rc[1]))} {rc[2]}'
return f'{int(float(rc[1]))} {rc[2]}' if rc else ''
@staticmethod
def parse_timedelta(time):

View File

@@ -20,7 +20,7 @@ with open(path.join(pkg_dir, 'README.md'), encoding='utf-8') as f:
setup(
name='mktxp',
version='0.32',
version='0.34',
url='https://github.com/akpw/mktxp',