INNER CODE UNIT · Python

wrapper

infobyte/emploleaks · emploleaks.py:659

        def wrapper(*args, **kwargs):
            if args[0].conn == None:
                log.warning(f"[!] Database connection required for this operation. Use '{Style.BRIGHT}{Fore.WHITE}connect_leaks{Style.RESET_ALL}' command to connect to the leaks database")
                return
            return func(*args, **kwargs)
        return wrapper

    def leaksdb_connected(func):
        def wrapper(*args, **kwargs):
            if args[0].leaks_conn == None:
                log.warning(f"Firstly connect to the leaks database with '{Style.BRIGHT}{Fore.WHITE}connect_leaks{Style.RESET_ALL}' command")
                return
            func(*args)
        return wrapper

    def plugin_activated(func):
        def wrapper(*args, **kwargs):
            if args[0].plugin_name == '':

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…