Skip to content

Commit

Permalink
Fixed 4 flake8 violations due to stinky IDE I was using
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate Damon authored and tk0miya committed Oct 26, 2019
1 parent c6bd00d commit b4eba53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sphinx/builders/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -1163,9 +1163,9 @@ def validate_html_extra_path(app: Sphinx, config: Config) -> None:
logger.warning(__('html_extra_path entry %r does not exist'), entry)
config.html_extra_path.remove(entry)
else:
try:
common_path = path.commonpath([app.outdir, extra_path])
except ValueError: # different directories, can skip to next
try:
common_path = path.commonpath([app.outdir, extra_path])
except ValueError: # different directories, can skip to next
continue
if common_path == app.outdir:
logger.warning(__('html_extra_path entry %r is placed inside outdir'), entry)
Expand All @@ -1182,7 +1182,7 @@ def validate_html_static_path(app: Sphinx, config: Config) -> None:
else:
try:
common_path = path.commonpath([app.outdir, static_path])
except ValueError: # different directories, can skip to next
except ValueError: # different directories, can skip to next
continue
if common_path == app.outdir:
logger.warning(__('html_static_path entry %r is placed inside outdir'), entry)
Expand Down

0 comments on commit b4eba53

Please sign in to comment.