Fix path-to-str
This commit is contained in:
parent
597bd57bd2
commit
fd13b132af
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ class SiteStorage(object):
|
||||||
if path == self.directory:
|
if path == self.directory:
|
||||||
inner_path = ""
|
inner_path = ""
|
||||||
else:
|
else:
|
||||||
if path.startswith(self.directory):
|
if str(path).startswith(self.directory):
|
||||||
inner_path = path[len(self.directory) + 1:]
|
inner_path = path[len(self.directory) + 1:]
|
||||||
else:
|
else:
|
||||||
raise Exception("File not allowed: %s" % path)
|
raise Exception("File not allowed: %s" % path)
|
||||||
|
|
Loading…
Reference in a new issue