From ad0dc9cf1a2161cb0bf2cfbc9c6fd4df2f78ab3a Mon Sep 17 00:00:00 2001 From: rebortg Date: Sun, 29 Nov 2020 22:00:20 +0100 Subject: cmdinclude: fix errormsg --- docs/_ext/vyos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/_ext/vyos.py') 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: -- cgit v1.2.3