Skip to content

Commit

Permalink
fix: reading env
Browse files Browse the repository at this point in the history
  • Loading branch information
lss233 committed Apr 20, 2023
1 parent d2def50 commit 5c9357e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def __load_json_config() -> Config:

@staticmethod
def load_config() -> Config:
if env_config := os.environ['CHATGPT_FOR_BOT_FULL_CONFIG']:
if env_config := os.environ.get('CHATGPT_FOR_BOT_FULL_CONFIG', ''):
return Config.parse_obj(toml.loads(env_config))
try:
if (
Expand Down

0 comments on commit 5c9357e

Please sign in to comment.