better dataset error msg

This commit is contained in:
Dun Liang 2021-03-15 18:07:20 +08:00
parent d531a9a9d5
commit 3e0396a14e
2 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,7 @@
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
# ***************************************************************
__version__ = '1.2.2.47'
__version__ = '1.2.2.48'
from . import lock
with lock.lock_scope():
ori_int = int

View File

@ -218,8 +218,11 @@ class Dataset(object):
img_open_hook.duration
img_open_hook.duration = 0.0
except:
import traceback
line = traceback.format_exc()
print(line)
os.kill(os.getppid(), signal.SIGINT)
raise
exit(0)
def display_worker_status(self):
''' Display dataset worker status, when dataset.num_workers > 0, it will display infomation blow: