Skip to content

Commit 970380c

Browse files
committed
Fix config json
1 parent d054587 commit 970380c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bot.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@ def _add_commands(self):
6464
self.add_command(cmd)
6565
@property
6666
def config(self):
67-
with open('config.json') as f:
68-
config = json.load(f)
67+
try:
68+
with open('config.json') as f:
69+
config = json.load(f)
70+
except FileNotFoundError:
71+
config = {}
6972
config.update(os.environ)
7073
return config
7174

config.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)