From fc1feec8bfc3fe7f836964687ef6cdb14bf5bbbf Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 14 Apr 2020 09:43:12 -0400 Subject: [PATCH] Fix format string --- netbox/utilities/auth_backends.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/utilities/auth_backends.py b/netbox/utilities/auth_backends.py index 6e968a241..6342bad2b 100644 --- a/netbox/utilities/auth_backends.py +++ b/netbox/utilities/auth_backends.py @@ -48,7 +48,7 @@ class RemoteUserBackend(ViewExemptModelBackend, RemoteUserBackend_): try: group_list.append(Group.objects.get(name=name)) except Group.DoesNotExist: - logging.error("Could not assign group {name} to remotely-authenticated user {user}: Group not found") + logging.error(f"Could not assign group {name} to remotely-authenticated user {user}: Group not found") if group_list: user.groups.add(*group_list) logger.debug(f"Assigned groups to remotely-authenticated user {user}: {group_list}")