Commit 42f34783 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

mirrorresolv: update to Djang 1.10

Update to BaseCommand.
parent a73e8d1a
......@@ -8,7 +8,7 @@
Usage: ./ mirrorresolv
from import NoArgsCommand
from import BaseCommand
import sys
import logging
......@@ -23,10 +23,10 @@
logger = logging.getLogger()
class Command(NoArgsCommand):
class Command(BaseCommand):
help = "Runs a check on all active mirror URLs to determine if they are reachable via IPv4 and/or v6."
def handle_noargs(self, **options):
def handle(self, **options):
v = int(options.get('verbosity', 0))
if v == 0:
logger.level = logging.ERROR
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment