Skip to content

Commit eb41375

Browse files
committed
Allow branches to not be there in configuration.
1 parent 804af5b commit eb41375

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[metadata]
99
name = "idpyoidc"
10-
version = "1.0.1"
10+
version = "1.0.2"
1111
author = "Roland Hedberg"
1212
author_email = "[email protected]"
1313
description = "Everything OAuth2 and OIDC"

src/idpyoidc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Roland Hedberg"
2-
__version__ = "1.0.1"
2+
__version__ = "1.0.2"
33

44
import os
55
from typing import Dict

src/idpyoidc/configure.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,11 @@ def extend(self,
148148
_path = econf.get("path")
149149
_cnf = conf
150150
if _path:
151-
for step in _path:
152-
_cnf = _cnf[step]
151+
try:
152+
for step in _path:
153+
_cnf = _cnf[step]
154+
except KeyError:
155+
continue
153156
_attr = econf["attr"]
154157
_cls = econf["class"]
155158
setattr(self, _attr,

0 commit comments

Comments
 (0)