summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/client_utils/parsing_opts.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/automation/trex_control_plane/client_utils/parsing_opts.py')
-rwxr-xr-xscripts/automation/trex_control_plane/client_utils/parsing_opts.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/client_utils/parsing_opts.py b/scripts/automation/trex_control_plane/client_utils/parsing_opts.py
index 6f9b4c6d..5cb06604 100755
--- a/scripts/automation/trex_control_plane/client_utils/parsing_opts.py
+++ b/scripts/automation/trex_control_plane/client_utils/parsing_opts.py
@@ -70,7 +70,10 @@ def match_multiplier_common(val, strict_abs = True):
op = None
else:
match = re.match("^(\d+(\.\d+)?)(bps|kbps|mbps|gbps|pps|kpps|mpps|%?)([\+\-])?$", val)
- op = match.group(4)
+ if match:
+ op = match.group(4)
+ else:
+ op = None
result = {}