mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-31 18:58:01 +00:00
l4_cxprofile: Fix bare except clause
Signed-off-by: matthew <stidmatt@gmail.com>
This commit is contained in:
@@ -195,13 +195,13 @@ class L4CXProfile(LFCliBase):
|
|||||||
arguments=None,
|
arguments=None,
|
||||||
iterations=0,
|
iterations=0,
|
||||||
debug=False):
|
debug=False):
|
||||||
try:
|
if duration_sec:
|
||||||
duration_sec = LFCliBase.parse_time(duration_sec).seconds
|
duration_sec = LFCliBase.parse_time(duration_sec).seconds
|
||||||
except:
|
else:
|
||||||
if (duration_sec is None) or (duration_sec <= 1):
|
if (duration_sec is None) or (duration_sec <= 1):
|
||||||
raise ValueError("L4CXProfile::monitor wants duration_sec > 1 second")
|
raise ValueError("L4CXProfile::monitor wants duration_sec > 1 second")
|
||||||
if duration_sec <= monitor_interval:
|
if duration_sec <= monitor_interval:
|
||||||
raise ValueError("L4CXProfile::monitor wants duration_sec > monitor_interval")
|
raise ValueError("L4CXProfile::monitor wants duration_sec > monitor_interval")
|
||||||
if report_file is None:
|
if report_file is None:
|
||||||
raise ValueError("Monitor requires an output file to be defined")
|
raise ValueError("Monitor requires an output file to be defined")
|
||||||
if created_cx is None:
|
if created_cx is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user