mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 04:52:13 -07:00
fix Subprocessor now writes an error if it fails to process the data
This commit is contained in:
parent
ddb6bcf416
commit
d78ec338c6
1 changed files with 5 additions and 1 deletions
|
@ -226,6 +226,10 @@ class Subprocessor(object):
|
||||||
cli.state = 0
|
cli.state = 0
|
||||||
elif op == 'error':
|
elif op == 'error':
|
||||||
#some error occured while process data, returning chunk to on_data_return
|
#some error occured while process data, returning chunk to on_data_return
|
||||||
|
err_msg = obj.get('err_msg', None)
|
||||||
|
if err_msg is not None:
|
||||||
|
io.log_info(f'Error while processing data: {err_msg}')
|
||||||
|
|
||||||
if 'data' in obj.keys():
|
if 'data' in obj.keys():
|
||||||
self.on_data_return (cli.host_dict, obj['data'] )
|
self.on_data_return (cli.host_dict, obj['data'] )
|
||||||
#and killing process
|
#and killing process
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue