diff options
| author | 2022-10-07 21:04:41 +0100 | |
|---|---|---|
| committer | 2022-10-07 21:13:35 +0100 | |
| commit | d475961e051751c3b2d0dd9efdded86093a895c4 (patch) | |
| tree | f2ea9f80ba8dad8ec4d7da9a8a008b5e8fffff47 /arthur/config.py | |
| parent | Add devops rules command (diff) | |
Don't load devops rules if notion api key isn't set
Diffstat (limited to 'arthur/config.py')
| -rw-r--r-- | arthur/config.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arthur/config.py b/arthur/config.py index 77748ec..d754696 100644 --- a/arthur/config.py +++ b/arthur/config.py @@ -1,4 +1,6 @@ """Utilities for interacting with the config for King Arthur.""" +from typing import Optional + from pydantic import BaseSettings @@ -21,7 +23,7 @@ class Config(BaseSettings): guild_id: int = 267624335836053506 # Token for authorising with the Notion API - notion_api_token: str + notion_api_token: Optional[str] = None class Config: # noqa: D106 env_file = ".env" |