[library-web] s/e/exception as it collides with the function main argument
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] s/e/exception as it collides with the function main argument
- Date: Tue, 25 Feb 2020 16:39:21 +0000 (UTC)
commit 62c94a8369200dd7155f09d2175f894e52eaa5db
Author: Andrea Veri <av gnome org>
Date: Tue Feb 25 16:39:17 2020 +0000
s/e/exception as it collides with the function main argument
src/modtypes/mallard.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/modtypes/mallard.py b/src/modtypes/mallard.py
index 0800706..daee70a 100644
--- a/src/modtypes/mallard.py
+++ b/src/modtypes/mallard.py
@@ -39,8 +39,8 @@ from base import DocModule
def dup_node(e):
try:
return ET.fromstring(ET.tostring(e, encoding='utf-8'))
- except xml.etree.ElementTree.ParseError as e:
- print e
+ except xml.etree.ElementTree.ParseError as exception:
+ print exception
MAL_NS = 'http://projectmallard.org/1.0/'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]