You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding providers to the registry, we create a mapping between conceptscheme.uri and provider.ID. Sometimes conceptscheme.uri is None, which create a mapping between None and a certain provider. When calling registry.get_provider(None), this provider is returned. This is unwanted behaviour since this makes it possible to register more than one provider with None. Leading to unexpected results.
Also, it might be better to check that we aren't registering more than one provider with the same URI anyway.
When adding providers to the registry, we create a mapping between conceptscheme.uri and provider.ID. Sometimes conceptscheme.uri is None, which create a mapping between None and a certain provider. When calling
registry.get_provider(None)
, this provider is returned. This is unwanted behaviour since this makes it possible to register more than one provider with None. Leading to unexpected results.Also, it might be better to check that we aren't registering more than one provider with the same URI anyway.
Reported by @BartSaelen
The text was updated successfully, but these errors were encountered: