def check_ratelimit_budget(self, seconds_waited):
if self.ratelimit_budget is not None:<EOL><INDENT>self.ratelimit_budget -= seconds_waited<EOL>if self.ratelimit_budget < <NUM_LIT:1>:<EOL><INDENT>raise RatelimitBudgetExceeded("<STR_LIT>")<EOL><DEDENT><DEDENT>
If we have a ratelimit_budget, ensure it is not exceeded.