Skip to content

Commit ae5e084

Browse files
authored
Use f-string in views (#750)
1 parent b88182c commit ae5e084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework_simplejwt/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_serializer_class(self) -> Serializer:
2828
try:
2929
return import_string(self._serializer_class)
3030
except ImportError:
31-
msg = "Could not import serializer '%s'" % self._serializer_class
31+
msg = f"Could not import serializer '{self._serializer_class}'"
3232
raise ImportError(msg)
3333

3434
def get_authenticate_header(self, request: Request) -> str:

0 commit comments

Comments
 (0)