This syntax is not supported by old python, error msg:
    except Exception as e:
                      ^
SyntaxError: invalid syntax

Signed-off-by: Amos Kong <[email protected]>
---
 0 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/client/tests/kvm/kvm_test_utils.py 
b/client/tests/kvm/kvm_test_utils.py
index 9fbb418..da33b8b 100644
--- a/client/tests/kvm/kvm_test_utils.py
+++ b/client/tests/kvm/kvm_test_utils.py
@@ -268,7 +268,7 @@ def get_time(session, time_command, time_filter_re, 
time_format):
     except IndexError:
         logging.debug("The time string from guest is:\n%s" % s)
         raise error.TestError("The time string from guest is unexpected.")
-    except Exception as e:
+    except Exception, e:
         logging.debug("(time_filter_re, time_string): (%s, %s)" %
                        (time_filter_re, s))
         raise e

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to