From 09640eebf3e9a0ac7d1e2f06c9c25ea91824127a Mon Sep 17 00:00:00 2001 From: Matthew Glanz Date: Fri, 3 Nov 2023 16:43:40 -0400 Subject: [PATCH] Lint --- ACMAS/app/ACMAS_Web/management/commands/create_groups.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ACMAS/app/ACMAS_Web/management/commands/create_groups.py b/ACMAS/app/ACMAS_Web/management/commands/create_groups.py index 8391e4e..63b1836 100644 --- a/ACMAS/app/ACMAS_Web/management/commands/create_groups.py +++ b/ACMAS/app/ACMAS_Web/management/commands/create_groups.py @@ -1,3 +1,4 @@ + import logging from django.core.management.base import BaseCommand @@ -23,9 +24,11 @@ def handle(self, *args, **options): try: model_add_perm = Permission.objects.get(name=name) except Permission.DoesNotExist: - logging.warning("Permission not found with name "{}".".format(name)) + logging.warning("Permission not found with name '{}'.".format(name)) continue new_group.permissions.add(model_add_perm) print("Created default group and permissions.") + +