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