summaryrefslogtreecommitdiff
path: root/registry.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2012-11-13 07:33:44 +0100
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2012-11-13 07:33:44 +0100
commit9e405b2e2fddbf380dff6c3551297567b42bcab2 (patch)
treef0428f7083d4abbefdb0ee9fa6ae4bcea3b59b97 /registry.py
parent909df133635226ba3e622ea6b0130a541416664b (diff)
downloadlogilab-common-9e405b2e2fddbf380dff6c3551297567b42bcab2.tar.gz
[registry] setdefault catch wrong exception. Closes #111010
Diffstat (limited to 'registry.py')
-rw-r--r--registry.py2
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]