Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewglanz committed Nov 3, 2023
1 parent 27679f4 commit 09640ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ACMAS/app/ACMAS_Web/management/commands/create_groups.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

import logging

from django.core.management.base import BaseCommand
Expand All @@ -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.")


0 comments on commit 09640ee

Please sign in to comment.