[misc] translate all exception to KeyError when trying to load a metadata file

This commit is contained in:
Benjamin Dauvergne 2010-12-16 13:37:10 +00:00
parent f57122df04
commit f1459a276a
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ def get_provider_and_label(provider_key):
try:
provider = lasso.Provider(lp['role'], get_abs_path(lp['metadata']), publickey_fn, None)
except lasso.Error:
except:
raise KeyError()
if lp.get('label'):