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:
James E. Blair 2018-05-20 16:51:18 -07:00
parent 8a7364ffb9
commit 1e5fb3c139
1 changed files with 3 additions and 1 deletions

View File

@ -13,4 +13,6 @@
# under the License.
class DisplayError(Exception):
pass
def __init__(self, message):
super(DisplayError, self).__init__(message)
self.message = message