Skip to content

Commit bbed7b0

Browse files
committed
Formatting
1 parent 059a81f commit bbed7b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linkcheck/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def check_internal(self):
311311
elif self.type == "file":
312312
# TODO: Assumes a direct mapping from media url to local filesystem path.
313313
# This will break quite easily for alternate setups
314-
path = settings.MEDIA_ROOT + unquote(self.internal_url)[len(MEDIA_PREFIX) - 1 :]
314+
path = settings.MEDIA_ROOT + unquote(self.internal_url)[len(MEDIA_PREFIX) - 1:]
315315
decoded_path = html_decode(path)
316316
self.status = os.path.exists(path) or os.path.exists(decoded_path)
317317
self.message = "Working file link" if self.status else "Missing Document"

0 commit comments

Comments
 (0)