Skip to content
This repository was archived by the owner on Jun 12, 2021. It is now read-only.

Commit b15ca59

Browse files
committed
Signal failure
1 parent efdcda1 commit b15ca59

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/oidcservice/service.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,9 @@ def build_services(service_definitions, service_factory, module_dirs,
541541
state_db=state_db,
542542
client_authn_factory=client_authn_factory,
543543
conf=service_configuration)
544-
service[_srv.service_name] = _srv
544+
try:
545+
service[_srv.service_name] = _srv
546+
except AttributeError:
547+
raise ValueError("Could not load '{}'".format(service_name))
545548

546549
return service

0 commit comments

Comments
 (0)