1 2 3 4 5 6 7
if oldFlatInfoRow is not None and oldFlatInfoRow[0] is not None: isFlatInfoUpdated = 1 oldFlatPriceInfo = oldFlatInfoRow[0] try: flatPriceDelta = float(flatPriceInfo) - float(oldFlatPriceInfo) except ValueError: pass