diff --git a/image_prediction/utils/process_wrapping.py b/image_prediction/utils/process_wrapping.py index 516e40b..c26f48f 100644 --- a/image_prediction/utils/process_wrapping.py +++ b/image_prediction/utils/process_wrapping.py @@ -17,9 +17,6 @@ def wrap_in_process(fn): process = multiprocessing.Process(target=process_fn, args=args, kwargs=kwargs) process.start() process.join() - try: - return return_queue.pop(0) - except IndexError: - logger.warning("No results returned by subprocess.") + return return_queue.pop(0) return wrapped_fn