Skip to content

Commit f46f9d1

Browse files
committed
StaticFile.__str__ should always return a str, not e.g. a Path() instance
Refs django-commons#2002
1 parent a21604a commit f46f9d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug_toolbar/panels/staticfiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, path):
2121
self.path = path
2222

2323
def __str__(self):
24-
return self.path
24+
return str(self.path)
2525

2626
def real_path(self):
2727
return finders.find(self.path)

0 commit comments

Comments
 (0)