Browse Source

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
James E. Blair 11 months ago
parent
commit
1e5fb3c139
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      gertty/view/__init__.py

+ 3
- 1
gertty/view/__init__.py View File

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

Loading…
Cancel
Save