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 d054587 commit 970380cCopy full SHA for 970380c
bot.py
@@ -64,8 +64,11 @@ def _add_commands(self):
64
self.add_command(cmd)
65
@property
66
def config(self):
67
- with open('config.json') as f:
68
- config = json.load(f)
+ try:
+ with open('config.json') as f:
69
+ config = json.load(f)
70
+ except FileNotFoundError:
71
+ config = {}
72
config.update(os.environ)
73
return config
74
config.json
0 commit comments