File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -247,6 +247,15 @@ def call_worker(
247247
248248 st = r ['status' ]
249249
250+ for rr in r .get ('reports' , []):
251+ report = Report (** rr )
252+ repo .send_error_report (
253+ lilacinfo ,
254+ subject = report .subject ,
255+ msg = report .msg ,
256+ logfile = logfile if report .sendlog else None ,
257+ )
258+
250259 error : Optional [Exception ]
251260 if timedout :
252261 error = TimeoutError ()
@@ -255,15 +264,6 @@ def call_worker(
255264 elif st == 'skipped' :
256265 error = SkipBuild (r ['msg' ])
257266 elif st == 'failed' :
258- if reports := r .get ('reports' ):
259- for r in reports :
260- report = Report (** r )
261- repo .send_error_report (
262- lilacinfo ,
263- subject = report .subject ,
264- msg = report .msg ,
265- logfile = logfile if report .sendlog else None ,
266- )
267267 error = BuildFailed (r ['msg' ])
268268 else :
269269 error = RuntimeError ('unknown status from worker' , st )
You can’t perform that action at this time.
0 commit comments