diff --git a/mktxp/flow/processor/output.py b/mktxp/flow/processor/output.py index c0af720..2d16ef8 100644 --- a/mktxp/flow/processor/output.py +++ b/mktxp/flow/processor/output.py @@ -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): diff --git a/setup.py b/setup.py index 5fc6658..bc5cb5b 100755 --- a/setup.py +++ b/setup.py @@ -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',