From 1c9ca43e12a9c09c94b87d1c494823b3c5d7798a Mon Sep 17 00:00:00 2001 From: David Faure Date: Sun, 13 Dec 2020 11:50:46 +0100 Subject: Fix errors in python code, found by pylama in a strict CI --- docs/sphinx/ext/ecm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/sphinx') diff --git a/docs/sphinx/ext/ecm.py b/docs/sphinx/ext/ecm.py index 2bab34a7..8667b367 100644 --- a/docs/sphinx/ext/ecm.py +++ b/docs/sphinx/ext/ecm.py @@ -76,7 +76,7 @@ class ECMModule(Directive): settings.record_dependencies.add(path) f = io.FileInput(source_path=path, encoding=encoding, error_handler=e_handler) - except UnicodeEncodeError as error: + except UnicodeEncodeError: raise self.severe('Problems with "%s" directive path:\n' 'Cannot encode input file path "%s" ' '(wrong locale?).' % -- cgit v1.2.1