diff options
author | opensource-tnbt <sridhar.rao@spirent.com> | 2020-12-01 16:46:31 +0530 |
---|---|---|
committer | opensource-tnbt <sridhar.rao@spirent.com> | 2020-12-01 16:47:38 +0530 |
commit | d7a033d9e40eedee5e0413cb2f0898fc82364f58 (patch) | |
tree | e69740c762fcb26f6519a72b62ed2f640e99e8d8 /tools/pkt_gen/testcenter/testcenter.py | |
parent | 0bbc7e2674bd06921e9fe4a0b3318724327d3ff2 (diff) |
Tools: Improve Stability.
This patch has minor updates to improve stability.
Signed-off-by: Sridhar K. N. Rao <sridhar.rao@spirent.com>
Change-Id: I0ded30c64389d75f15d2a8758a40dfb5cf3ff674
Diffstat (limited to 'tools/pkt_gen/testcenter/testcenter.py')
-rw-r--r-- | tools/pkt_gen/testcenter/testcenter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/pkt_gen/testcenter/testcenter.py b/tools/pkt_gen/testcenter/testcenter.py index 73967bae..a15c502c 100644 --- a/tools/pkt_gen/testcenter/testcenter.py +++ b/tools/pkt_gen/testcenter/testcenter.py @@ -338,6 +338,8 @@ class TestCenter(trafficgen.ITrafficGenerator): Reads the CSV file and return the results """ result = {} + if not os.path.exists(filename): + return result with open(filename, "r") as csvfile: csvreader = csv.DictReader(csvfile) for row in csvreader: |