summaryrefslogtreecommitdiff
path: root/pygments/formatters/html.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/formatters/html.py')
-rw-r--r--pygments/formatters/html.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py
index 08aaa85f..7e903145 100644
--- a/pygments/formatters/html.py
+++ b/pygments/formatters/html.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
pygments.formatters.html
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -628,7 +627,7 @@ class HtmlFormatter(Formatter):
with open(cssfilename, "w") as cf:
cf.write(CSSFILE_TEMPLATE %
{'styledefs': self.get_style_defs('body')})
- except IOError as err:
+ except OSError as err:
err.strerror = 'Error writing CSS file: ' + err.strerror
raise