INNER CODE UNIT · Python

leaksdb_connected

infobyte/emploleaks · emploleaks.py:666

    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 == '':
                log.warning(f"You need to select a plugin with the '{Style.BRIGHT}{Fore.WHITE}use{Style.RESET_ALL}' command")
                return
            func(*args)
        return wrapper

    def company_selected(func):
        def wrapper(*args, **kwargs):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…