PEL:Removed raising exception if SRCs are not present
Changes:
- Modified method "fetch_all_src" from raising exception if there are no SRCs in the system
Tested:
- python -m py_compile pel_utils.py
Signed-off-by: Anusha Dathatri <adathatr@in.ibm.com>
Change-Id: If40f675c8a00a599a0fbd04c10257e7e055bf975
diff --git a/lib/pel_utils.py b/lib/pel_utils.py
index 7db4ac6..a99a5b5 100644
--- a/lib/pel_utils.py
+++ b/lib/pel_utils.py
@@ -178,8 +178,6 @@
pel_id_list = pel_data.keys()
for pel_id in pel_id_list:
src_id.append(pel_data[pel_id]["SRC"])
- else:
- raise peltool_exception("No PEL entry found ..")
except Exception as e:
raise peltool_exception("Failed to fetch all SRCs : " + str(e))
return src_id