[glib PATCH 09/16] conn-test: Handle exceptions in a py3 compatible way

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux