Skip to content

Commit 45a6f2c

Browse files
committed
Move exception inside atp_helper function
1 parent 1f3595c commit 45a6f2c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

core/src/main/python/wlsdeploy/tool/create/atp_helper.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
from xml.dom.minidom import parse
99
from wlsdeploy.exception import exception_helper
1010

11+
from wlsdeploy.logging.platform_logger import PlatformLogger
12+
13+
_logger = PlatformLogger('wlsdeploy.create')
14+
1115
def set_ssl_properties(xmlDoc, atp_creds_path, keystore_password, truststore_password):
1216
'''
1317
Add SSL config properties to the specified XML document.
@@ -81,13 +85,16 @@ def get_atp_connect_string(tnsnames_ora_path, tns_sid_name):
8185
return connect_string, None
8286
else:
8387
ex = exception_helper.create_create_exception("WLSDPLY-12563", tns_sid_name)
84-
return None, ex
88+
_logger.throwing(ex, class_name='atp_helper', method_name='get_atp_connect_string')
89+
raise ex
8590
except IOError, ioe:
8691
ex = exception_helper.create_create_exception("WLSDPLY-12570", str(ioe))
87-
return None, ex
92+
_logger.throwing(ex, class_name='atp_helper', method_name='get_atp_connect_string')
93+
raise ex
8894
except Exception, ex:
8995
ex = exception_helper.create_create_exception("WLSDPLY-12570", str(ex))
90-
return None, ex
96+
_logger.throwing(ex, class_name='atp_helper', method_name='get_atp_connect_string')
97+
raise ex
9198

9299
def cleanup_connect_string(connect_string):
93100
"""

0 commit comments

Comments
 (0)