diff options
author | Manuel Buil <mbuil@suse.com> | 2017-06-29 17:58:38 +0200 |
---|---|---|
committer | Brady Johnson <bjohnson@inocybe.com> | 2017-06-30 12:00:09 +0000 |
commit | 57e82559f82e05d2cedf45e103d3dfce78592a64 (patch) | |
tree | 9d2043dc80b9407f328c787f960038727d53f349 /sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py | |
parent | 2bec71a910fa21e2c6037b3cedfb0b9cf19329f1 (diff) |
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 <mbuil@suse.com>
Diffstat (limited to 'sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py')
-rw-r--r-- | sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py index 07bf5166..7f121b93 100644 --- a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py +++ b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py @@ -199,7 +199,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") @@ -291,7 +291,7 @@ def main(): testTopology,)) try: t2.start() - except Exception, e: + except Exception as e: logger.error("Unable to start the thread that counts time %s" % e) logger.info("Wait for ODL to update the classification rules in OVS") |