From 57e82559f82e05d2cedf45e103d3dfce78592a64 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Thu, 29 Jun 2017 17:58:38 +0200 Subject: Use the recommended exception syntax Today I learnt that the use of except Exception, variable is not recommended anymore and it is not supported after python3. When using >=2.6, the syntax should be except Exception as variable. https://www.python.org/dev/peps/pep-3110/ Change-Id: I213c220fc6e92878ffa4737efa16adb76ace1271 Signed-off-by: Manuel Buil --- sfc/tests/functest/sfc_symmetric_chain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfc/tests/functest/sfc_symmetric_chain.py') diff --git a/sfc/tests/functest/sfc_symmetric_chain.py b/sfc/tests/functest/sfc_symmetric_chain.py index e3fd26f3..686d7fc0 100644 --- a/sfc/tests/functest/sfc_symmetric_chain.py +++ b/sfc/tests/functest/sfc_symmetric_chain.py @@ -189,7 +189,7 @@ def main(): try: t1.start() - except Exception, e: + except Exception as e: logger.error("Unable to start the thread that counts time %s" % e) logger.info("Assigning floating IPs to instances") -- cgit 1.2.3-korg