mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-30 18:27:53 +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,
|
||||
iterations=0,
|
||||
debug=False):
|
||||
try:
|
||||
if duration_sec:
|
||||
duration_sec = LFCliBase.parse_time(duration_sec).seconds
|
||||
except:
|
||||
else:
|
||||
if (duration_sec is None) or (duration_sec <= 1):
|
||||
raise ValueError("L4CXProfile::monitor wants duration_sec > 1 second")
|
||||
if duration_sec <= monitor_interval:
|
||||
raise ValueError("L4CXProfile::monitor wants duration_sec > monitor_interval")
|
||||
if duration_sec <= monitor_interval:
|
||||
raise ValueError("L4CXProfile::monitor wants duration_sec > monitor_interval")
|
||||
if report_file is None:
|
||||
raise ValueError("Monitor requires an output file to be defined")
|
||||
if created_cx is None:
|
||||
|
||||
Reference in New Issue
Block a user