def handle(self, *args, **options):
        if (1, 10) >= django.VERSION[:2]:
            aliases = set(options['aliases'])
        else:
            aliases = set(args)

        if not aliases:
            aliases = settings.CACHES

        tables = set()
        for alias in aliases:
            try:
                cache = caches[alias]
            except InvalidCacheBackendError:
                raise CommandError("Cache '{}' does not exist".format(alias))

            if not isinstance(cache, MySQLCache):  # pragma: no cover
                continue

            tables.add(cache._table)

        if not tables:
            self.stderr.write("No MySQLCache instances in CACHES")
            return

        migration = self.render_migration(tables)
        self.stdout.write(migration)
dataset/ETHPy150Open adamchainz/django-mysql/django_mysql/management/commands/mysql_cache_migration.py/Command.handle/swapped operands of `>=`