def _q_upload_component_location(self, in_q, out_q): for params in iter(in_q.get, None): try: self.load_component_location(*params) out_q.put((False, params)) except Exception as e: out_q.put((ExceptionWrapper(e), params))
def _q_execute(self, method, in_q, out_q): for params in iter(in_q.get, None): try: method(*params) out_q.put((False, params)) except Exception as e: out_q.put((ExceptionWrapper(e), params))
def _q_read_single_sexual_violence_injury(self, inq, outq): for arglist in iter(inq.get, SENTINEL): try: result = self.read_single_sexual_violence_injury(*arglist) except Exception as e: print(arglist) result = ExceptionWrapper(e) outq.put(result)
def _q_read_single_birth_prev(self, inq, outq): for arglist in iter(inq.get, SENTINEL): try: result = self.read_single_birth_prev(*arglist) except Exception as e: print(arglist) print(e) result = ExceptionWrapper(e) outq.put(result)
def _q_read_single_en_injury(self, inq, outq): for arglist in iter(inq.get, sentinel): try: result = self.read_single_en_injury(*arglist) except Exception as e: print(arglist) print(e) result = ExceptionWrapper(e) outq.put(result)