Skip to content

Commit

Permalink
Merge pull request #3565 from Carreau/style-min
Browse files Browse the repository at this point in the history
style.min.css shoudl always exist... don't silently fail.
  • Loading branch information
Carreau committed Jul 9, 2013
2 parents 8206b14 + da06456 commit d5d00cc
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions IPython/nbconvert/transformers/csshtmlheader.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,9 @@ def _regen_header(self):
'html', 'static', 'style', 'style.min.css')

#Load style CSS file.
try:
with io.open(sheet_filename, encoding='utf-8') as file:
file_text = file.read()
header.append(file_text)
except IOError:

# New version of IPython with style.min.css, pass
pass
with io.open(sheet_filename, encoding='utf-8') as file:
file_text = file.read()
header.append(file_text)

#Add pygments CSS
formatter = HtmlFormatter()
Expand Down

0 comments on commit d5d00cc

Please sign in to comment.