We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 307bef0 commit 6930846Copy full SHA for 6930846
src/fastapi_oauth2/core.py
@@ -35,7 +35,10 @@ def absolute_uri(self, path=None) -> str:
35
36
def get_setting(self, name) -> Any:
37
""" settings from environment """
38
- return os.getenv(name, '')
+ value = os.getenv(name)
39
+ if value == None:
40
+ raise KeyError
41
+ return value
42
43
@staticmethod
44
def get_json(url, method='GET', *args, **kwargs) -> httpx.Response:
0 commit comments