@@ -434,8 +434,9 @@ def main(args):
434
434
has_atp = validateRCUArgsAndModel (model_context , model )
435
435
# check if there is an atpwallet and extract in the domain dir
436
436
# it is to support non JRF domain but user wants to use ATP database
437
- if not has_atp :
438
- archive_file = WLSDeployArchive (model_context .get_archive_file_name ())
437
+ archive_file_name = model_context .get_archive_file_name ()
438
+ if not has_atp and archive_file_name and os .path .exists (archive_file_name ):
439
+ archive_file = WLSDeployArchive (archive_file_name )
439
440
if archive_file :
440
441
atp_wallet_zipentry = archive_file .getATPWallet ()
441
442
if atp_wallet_zipentry :
@@ -446,6 +447,12 @@ def main(args):
446
447
447
448
if has_atp :
448
449
atp_helper .fix_jps_config (model , model_context )
450
+ except WLSDeployArchiveIOException , ex :
451
+ __logger .severe ('WLSDPLY-12409' , _program_name , ex .getLocalizedMessage (), error = ex ,
452
+ class_name = _class_name , method_name = _method_name )
453
+ __clean_up_temp_files ()
454
+ tool_exit .end (model_context , CommandLineArgUtil .PROG_ERROR_EXIT_CODE )
455
+
449
456
except CreateException , ex :
450
457
__logger .severe ('WLSDPLY-12409' , _program_name , ex .getLocalizedMessage (), error = ex ,
451
458
class_name = _class_name , method_name = _method_name )
0 commit comments