ruff rule B

This commit is contained in:
thomas girod
2024-07-08 12:34:06 +02:00
parent 2ac578c3ad
commit c6d2ac9100
6 changed files with 15 additions and 9 deletions

View File

@ -72,7 +72,9 @@ class Command(BaseCommand):
def handle(self, *args, **options):
self.logger = logging.getLogger("main")
if options["verbosity"] < 0 or 2 < options["verbosity"]:
warnings.warn("verbosity level should be between 0 and 2 included")
warnings.warn(
"verbosity level should be between 0 and 2 included", stacklevel=2
)
if options["verbosity"] == 2:
self.logger.setLevel(logging.DEBUG)