summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2015-01-13 12:52:07 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2015-01-28 12:08:10 -0800
commitccce4718d772dc588f4c561ab63ba6d661db7f95 (patch)
tree94b3bfdf5ecf8e053edc09b9d1017212dec87765 /registry
parent05b96b8ac6b803052a910fd80ed8dc3c04b1553e (diff)
regsitry/gl.py: Make Error class inherit from Exception
In python 2 it is expected that errors descend from Exception, but there is no requirement that they do so, in python 3 it is required. This also is problematic because it makes the exception class an old style class, which has all the problems associated with old style classes. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'registry')
-rw-r--r--registry/gl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/registry/gl.py b/registry/gl.py
index c1ba2ef27..99f4a410a 100644
--- a/registry/gl.py
+++ b/registry/gl.py
@@ -318,7 +318,7 @@ class ImmutableOrderedKeyedSet(OrderedKeyedSet):
raise ImmutableError
-class ImmutableError:
+class ImmutableError(Exception):
pass