Signed-off-by: Fabiano FidĂȘncio <fidencio(a)redhat.com>
---
examples/conn-test.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/conn-test.py b/examples/conn-test.py
index 3b680b8..5f60e92 100644
--- a/examples/conn-test.py
+++ b/examples/conn-test.py
@@ -34,7 +34,7 @@ def done(conn, result, data):
conf.validate()
print ("Document is valid according to %s" %
conf.get_schema())
- except Exception, e:
+ except Exception as e:
print ("Document is not valid according to %s: %s: %s" %
(conf.get_schema(), str(e), str(type(e))))
xml = conf.to_xml()
--
2.21.0