From b6d9a3f0a3510530ea4de28937d6f8595068531a Mon Sep 17 00:00:00 2001 From: Thomas Morin Date: Thu, 26 Jan 2017 22:08:56 +0100 Subject: [PATCH] Fix WaitTimeout string representations Since eventlet.TimeoutError constructor is not called, TimeoutError __str__and __repr__ are not usable. This change ensures that the methods from the Exception base class are used. Change-Id: I27f44006b080f4f10983a026597fa47127950609 Closes-Bug: 1659655 --- neutron/common/utils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/neutron/common/utils.py b/neutron/common/utils.py index fddfea2f0f4..d17bc1ec3ea 100644 --- a/neutron/common/utils.py +++ b/neutron/common/utils.py @@ -67,7 +67,12 @@ class WaitTimeout(Exception, eventlet.TimeoutError): TimeoutError is raised, test runner stops and exits while it still has test cases scheduled for execution. """ - pass + + def __str__(self): + return Exception.__str__(self) + + def __repr__(self): + return Exception.__repr__(self) @removals.remove(