diff --git a/src/__main__.py b/src/__main__.py index d2660f1..a14e28b 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -31,7 +31,9 @@ def main(): # Add arguments # General arguments - argparser.add_argument('--log-level', '-l', help='Log level', default='INFO') # noqa E501 + argparser.add_argument( + "--log-level", "-l", help="Log level", default="INFO" + ) # noqa E501 # Credential arguments credential_args.add_argument( @@ -81,8 +83,6 @@ def main(): set_primary_logger(args.log_level) logger.debug(args) - - # Load variables global TOKEN global ACCOUNT_ID @@ -133,6 +133,7 @@ def delete_from_cloudflare(args): lists = utils.filter_adblock_lists(lists) delete.delete_adblock_list(lists, ACCOUNT_ID, TOKEN) + def set_primary_logger(log_level): logger.remove() # ^10 is a formatting directive to center with a padding of 10