summaryrefslogtreecommitdiff
path: root/docs/_ext/vyos.py
diff options
context:
space:
mode:
authorrebortg <github@ghlr.de>2020-11-29 22:00:20 +0100
committerrebortg <github@ghlr.de>2020-11-29 22:00:20 +0100
commitad0dc9cf1a2161cb0bf2cfbc9c6fd4df2f78ab3a (patch)
treeb01f0f4a1f9d2937a2ef28678dda8a9f7aa23790 /docs/_ext/vyos.py
parent4abded8025a47990e58cd0a5fe9b96e38f4a3715 (diff)
downloadvyos-documentation-ad0dc9cf1a2161cb0bf2cfbc9c6fd4df2f78ab3a.tar.gz
vyos-documentation-ad0dc9cf1a2161cb0bf2cfbc9c6fd4df2f78ab3a.zip
cmdinclude: fix errormsg
Diffstat (limited to 'docs/_ext/vyos.py')
-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: