diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2012-11-13 07:33:44 +0100 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2012-11-13 07:33:44 +0100 |
commit | 9e405b2e2fddbf380dff6c3551297567b42bcab2 (patch) | |
tree | f0428f7083d4abbefdb0ee9fa6ae4bcea3b59b97 /registry.py | |
parent | 909df133635226ba3e622ea6b0130a541416664b (diff) | |
download | logilab-common-9e405b2e2fddbf380dff6c3551297567b42bcab2.tar.gz |
[registry] setdefault catch wrong exception. Closes #111010
Diffstat (limited to 'registry.py')
-rw-r--r-- | registry.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/registry.py b/registry.py index 64f59e4..86065c5 100644 --- a/registry.py +++ b/registry.py @@ -501,7 +501,7 @@ class RegistryStore(dict): def setdefault(self, regid): try: return self[regid] - except KeyError: + except RegistryNotFound: self[regid] = self.registry_class(regid)(self.debugmode) return self[regid] |