@property
    def has_onsite(self):
        from datetime import date
        try:
            return date.today() < self.warrantyDetails.onsiteEndDate
        except Exception:
            return False
dataset/ETHPy150Open filipp/py-gsxws/gsxws/products.py/Product.has_onsite/original