def get_hit(client: MTurkClient, hit_id: str) -> Dict[str, Any]: """Get hit from mturk by hit_id""" hit = None try: return client.get_hit(HITId=hit_id) except ClientError as er: logger.warning( f"Skipping HIT {hit_id}. Unable to retrieve due to ClientError: {er}." ) return {}
def get_hit(client: MTurkClient, hit_id: str) -> Dict[str, Any]: """Get hit from mturk by hit_id""" return client.get_hit(HITId=hit_id)