Add message attribute to DisplayError
The .message attribute was dropped from the base exception class in py3. Since we use it, set it directly. Change-Id: I27124c6d00216b335351ef6985ddf869f2fd1366
This commit is contained in:
parent
8a7364ffb9
commit
1e5fb3c139
|
@ -13,4 +13,6 @@
|
|||
# under the License.
|
||||
|
||||
class DisplayError(Exception):
|
||||
pass
|
||||
def __init__(self, message):
|
||||
super(DisplayError, self).__init__(message)
|
||||
self.message = message
|
||||
|
|
Loading…
Reference in New Issue