Commit c629dd5
authored
fix: OpenIDConnectFrontend: check for empty db_uri (#420)
With IdentityPython/pyop#44 merged, OpenIDConnectFrontend init fails
when `db_uri` is not set, as `StorageBase.type` now throws a `ValueError`
for db_uri values that do not match one of the recognised storage types
(including when `db_uri` is `None`).
Fix this by guarding the `StorageBase.type` with a pythonic test
whether `db_uri` was provided.
Same test already guards `StorageBase.from_uri`, add it also
to the `StorageBase.type` call made to determine `self.stateless`.1 parent 7b37f69 commit c629dd5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments