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

Commit 6ff7843

Browse files
committed
Fixed bug in load_configuration.
1 parent e15456b commit 6ff7843

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/oidcrp/util.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,3 +241,7 @@ def load_configuration(filename):
241241
elif filename.endswith('.py'):
242242
sys.path.insert(0, ".")
243243
conf = importlib.import_module(filename[:-3])
244+
else:
245+
raise ValueError('Wrong file type')
246+
247+
return conf

0 commit comments

Comments
 (0)