File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -1184,6 +1184,15 @@ def _process_job_logs_retrieval(
11841184 # get a host to run retrieval on
11851185 try :
11861186 platform = get_platform (ctx .platform_name )
1187+ except PlatformLookupError :
1188+ log_platform_event (
1189+ 'Unable to retrieve job logs.' ,
1190+ {'name' : ctx .platform_name },
1191+ level = 'warning' ,
1192+ )
1193+ return
1194+
1195+ try :
11871196 host = get_host_from_platform (platform , bad_hosts = self .bad_hosts )
11881197 except NoHostsError :
11891198 # All of the platforms hosts have been found to be uncontactable.
@@ -1202,13 +1211,6 @@ def _process_job_logs_retrieval(
12021211 for id_key in id_keys :
12031212 self .unset_waiting_event_timer (id_key )
12041213 return
1205- except PlatformLookupError :
1206- log_platform_event (
1207- 'Unable to retrieve job logs.' ,
1208- {'name' : ctx .platform_name },
1209- level = 'warning' ,
1210- )
1211- return
12121214
12131215 # construct the retrieval command
12141216 ssh_str = str (platform ["ssh command" ])
You can’t perform that action at this time.
0 commit comments