summaryrefslogtreecommitdiff
path: root/docs/_ext
diff options
context:
space:
mode:
Diffstat (limited to 'docs/_ext')
-rw-r--r--docs/_ext/vyos.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/_ext/vyos.py b/docs/_ext/vyos.py
index 4b4b1a89..89cc8ab7 100644
--- a/docs/_ext/vyos.py
+++ b/docs/_ext/vyos.py
@@ -219,9 +219,9 @@ class CfgInclude(Directive):
'Cannot encode input file path "%s" '
'(wrong locale?).' %
(self.name, SafeString(path)))
- except IOError:
+ except IOError as error:
raise self.severe(u'Problems with "%s" directive path:\n%s.' %
- (self.name, ErrorString(error)))
+ (self.name, error))
startline = self.options.get('start-line', None)
endline = self.options.get('end-line', None)
try: