def autodiscover(self, module=None):
        """
        Accepts either no arguements or the name of the module to check. It
        then looks at each of the ``INSTALLED_APPS`` for the given module
        name or with the same named as ``discovermodule`` to find any
        registered subclasses.
        """

        if not module:
            module = self.discovermodule

        for app in settings.INSTALLED_APPS:
            try:
                import_module(module % ".%s", app)
            except ImportError:
                if module_has_submodule(import_module(app), module):
                    raise
                continue
dataset/ETHPy150Open d0ugal-archive/django-appregister/appregister/base.py/BaseRegistry.autodiscover/swapped operands of `%`