[VOL-2407] Updated with tp dict key check which was causing KeyError during the techprofile delete

Change-Id: I59853eaee278fc2b83ef84b14ab7443e66bf49ec
diff --git a/python/adapters/brcm_openomci_onu/brcm_openomci_onu_handler.py b/python/adapters/brcm_openomci_onu/brcm_openomci_onu_handler.py
index ca0a770..0712ccc 100644
--- a/python/adapters/brcm_openomci_onu/brcm_openomci_onu_handler.py
+++ b/python/adapters/brcm_openomci_onu/brcm_openomci_onu_handler.py
@@ -571,6 +571,14 @@
 
     def delete_tech_profile(self, uni_id, tp_path, alloc_id=None, gem_port_id=None):
         try:
+            if not uni_id in self._tech_profile_download_done:
+                self.log.warn("tp-key-is-not-present", uni_id=uni_id)
+                return
+
+            if not tp_path in self._tech_profile_download_done[uni_id]:
+                self.log.warn("tp-path-is-not-present", tp_path=tp_path)
+                return
+
             if self._tech_profile_download_done[uni_id][tp_path] is not True:
                 self.log.error("tp-download-is-not-done-in-order-to-process-tp-delete")
                 return