diff options
Diffstat (limited to '')
| -rw-r--r-- | cogs/vclogs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cogs/vclogs.py b/cogs/vclogs.py index 0d8ca3b..901b557 100644 --- a/cogs/vclogs.py +++ b/cogs/vclogs.py | |||
| @@ -69,7 +69,8 @@ class VcLogs(commands.Cog): | |||
| 69 | 69 | ||
| 70 | if os.path.exists(VcLogs.settings_file): | 70 | if os.path.exists(VcLogs.settings_file): |
| 71 | async with aiofiles.open(VcLogs.settings_file) as f: | 71 | async with aiofiles.open(VcLogs.settings_file) as f: |
| 72 | data = json.load(f) | 72 | content = await f.read() |
| 73 | data = json.loads(content) | ||
| 73 | volume = data['volume'] | 74 | volume = data['volume'] |
| 74 | else: | 75 | else: |
| 75 | logger.error("settings.json not found") | 76 | logger.error("settings.json not found") |
