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
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)