def handle_backoff(self, backoff):
        if not self.max_backoff_duration:
            return

        if (BACKOFF, CLOSED) in self.state:
            return

        if backoff:
            self.backoff.failure()
        else:
            self.backoff.success()

        if self.state == THROTTLED and self.backoff.is_reset():
            return self.complete_backoff()

        if not self.backoff.is_reset():
            return self.start_backoff()
dataset/ETHPy150Open wtolson/gnsq/gnsq/reader.py/Reader.handle_backoff/swapped operands of `in`