From 7ef06a43579f3ae02bd0224521dafaaad7ea43ba Mon Sep 17 00:00:00 2001 From: "E.Smith" <31170571+azlm8t@users.noreply.github.com> Date: Tue, 25 Sep 2018 12:53:46 +0100 Subject: [PATCH] python: Port to Python3. Python 3 requires "Exception as e" instead of "Exception, e". This new syntax is compatible with Python2.6+ and was introduced in PEP-3110 (Jan 2006). --- support/htspmon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/htspmon b/support/htspmon index 787f45c7b..430827e1f 100755 --- a/support/htspmon +++ b/support/htspmon @@ -79,7 +79,7 @@ try: log.info(msg, pretty=True) except KeyboardInterrupt: pass -except Exception, e: +except Exception as e: log.error(e) sys.exit(1) -- 2.47.2