Skip to content
Permalink
Browse files

flake8

  • Loading branch information
da2x committed May 19, 2015
1 parent c09c93c commit 7553b5af23afdf4642cffca4efe53804128b8c59
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/plugins/command/check.py
@@ -218,7 +218,7 @@ def analyze(self, task, find_sources=False, check_remote=False):
if parsed.netloc == base_url.netloc:
continue
# Check the remote link works
req_headers = {'User-Agent':'Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 (Nikola)'} # I’m a real boy!
req_headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 (Nikola)'} # I’m a real boy!
resp = requests.head(target, headers=req_headers)
if resp.status_code > 399: # Error
self.logger.warn("Broken link in {0}: {1} [Error {2}]".format(filename, target, resp.status_code))

0 comments on commit 7553b5a

Please sign in to comment.
You can’t perform that action at this time.