mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-17 23:52:46 +01:00
Make NonExistentRegistryEntry subclass AttributeError.
This commit is contained in:
parent
7d73a7dc0a
commit
69c18aed08
@ -57,7 +57,10 @@ class InvalidRegistryName(RegistryException):
|
||||
class InvalidRegistryValue(RegistryException):
|
||||
pass
|
||||
|
||||
class NonExistentRegistryEntry(RegistryException):
|
||||
class NonExistentRegistryEntry(RegistryException, AttributeError):
|
||||
# If we use hasattr() on a configuration group/value, Python 3 calls
|
||||
# __getattr__ and looks for an AttributeError, so __getattr__ has to
|
||||
# raise an AttributeError if a registry entry does not exist.
|
||||
pass
|
||||
|
||||
_cache = utils.InsensitivePreservingDict()
|
||||
|
Loading…
Reference in New Issue
Block a user