From f19e4735f9c2c40272188de3d1bdbf87253c9ff5 Mon Sep 17 00:00:00 2001 From: Ben Steffen Date: Tue, 7 Jan 2020 22:22:08 -0500 Subject: [PATCH] Update except syntax --- scripts/invirt-getconf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/invirt-getconf b/scripts/invirt-getconf index 2d5bff2..4e319af 100755 --- a/scripts/invirt-getconf +++ b/scripts/invirt-getconf @@ -78,8 +78,8 @@ def main(argv): else: yaml.dump(conf, stdout, Dumper=yaml.CSafeDumper, default_flow_style=False) - except invirt_exception, ex: print >> stderr, ex + except invirt_exception as ex: return 1 if __name__ == '__main__': -- 1.7.9.5