From: Atul Agarwal Date: Mon, 18 Oct 2021 17:22:58 +0000 (+0000) Subject: Resolved bug 1685 - POL hangs waiting for webhook response X-Git-Tag: v9.1.5~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F70%2F11270%2F1;p=osm%2FPOL.git Resolved bug 1685 - POL hangs waiting for webhook response Change-Id: Id0c3154491545c177ec3fb74aa82ad71acabdaf6 Signed-off-by: Atul Agarwal --- diff --git a/osm_policy_module/alarming/service.py b/osm_policy_module/alarming/service.py index 55fe864..1cc1a8d 100644 --- a/osm_policy_module/alarming/service.py +++ b/osm_policy_module/alarming/service.py @@ -27,7 +27,7 @@ import json import logging import requests -from requests.exceptions import ConnectionError +from requests.exceptions import ConnectionError, RequestException from osm_policy_module.common.common_db_client import CommonDbClient from osm_policy_module.common.lcm_client import LcmClient @@ -193,6 +193,9 @@ class AlarmingService: alarm.alarm_id, status) try: requests.post(url=action.url, json=json.dumps(payload)) + except RequestException as e: + log.info("Error connecting to url %s", action.url) + log.debug("RequestException %s", e) except ConnectionError: log.exception("Error connecting to url %s", action.url)