From 6cc92bdebc1164c96341e732f6c071fca63becb4 Mon Sep 17 00:00:00 2001 From: gallardo Date: Tue, 22 Mar 2022 16:59:51 +0000 Subject: [PATCH] Fix bug 1929 for EPA_04 test (exception management error) Change-Id: I3e75de24a12b7fc88ee63f68dfea0c6c87877905 Signed-off-by: gallardo --- .../osm_rosdn_onos_vpls/sdn_assist_onos_vpls.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/RO-SDN-onos_vpls/osm_rosdn_onos_vpls/sdn_assist_onos_vpls.py b/RO-SDN-onos_vpls/osm_rosdn_onos_vpls/sdn_assist_onos_vpls.py index fa22f101..c02ee15d 100644 --- a/RO-SDN-onos_vpls/osm_rosdn_onos_vpls/sdn_assist_onos_vpls.py +++ b/RO-SDN-onos_vpls/osm_rosdn_onos_vpls/sdn_assist_onos_vpls.py @@ -241,8 +241,10 @@ class OnosVpls(SdnConnectorBase): # try to rollback push original config try: self._post_onos_netconfig(onos_config_orig) - except Exception as e: - self.logger.error("Exception rolling back to original config: %s", e) + except Exception as rollback_e: + self.logger.error( + "Exception rolling back to original config: %s", rollback_e + ) # raise exception if isinstance(e, SdnConnectorError): -- 2.25.1