since RETRY isn't required maybe datastore['RETRY'] should be tested before using it. Or do RETRY required if it's the case.