From 85c1b31c82618bdfd450dee2a124993c67428281 Mon Sep 17 00:00:00 2001 From: Twentysix Date: Fri, 13 May 2016 02:46:32 +0200 Subject: [PATCH 1/3] Hotfix !playlist list --- cogs/audio.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cogs/audio.py b/cogs/audio.py index fbfb94a64..54c4e30a8 100644 --- a/cogs/audio.py +++ b/cogs/audio.py @@ -477,7 +477,10 @@ class Audio: path = "data/audio/playlists" old_playlists = [f[:-4] for f in os.listdir(path) if f.endswith(".txt")] path = os.path.join(path, server) - new_playlists = [f[:-4] for f in os.listdir(path) if f.endswith(".txt")] + if os.path.exists(path): + new_playlists = [f[:-4] for f in os.listdir(path) if f.endswith(".txt")] + else: + new_playlists = [] return list(set(old_playlists + new_playlists)) def _list_local_playlists(self): From 2f12a3b2e990dabeeb457026c838cd631e284fe6 Mon Sep 17 00:00:00 2001 From: Twentysix Date: Fri, 13 May 2016 02:54:33 +0200 Subject: [PATCH 2/3] Typo --- cogs/mod.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cogs/mod.py b/cogs/mod.py index a84e89f73..ecb3f3fe2 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -5,6 +5,7 @@ from .utils import checks from __main__ import send_cmd_help, settings import os import logging +import asyncio class Mod: """Moderation tools.""" From 53fcd73e1fbbc64cc4ebc8cb995e3797eca6c64f Mon Sep 17 00:00:00 2001 From: Will Tekulve Date: Thu, 12 May 2016 20:59:45 -0400 Subject: [PATCH 3/3] hide debug stdout messages --- red.py | 1 + 1 file changed, 1 insertion(+) diff --git a/red.py b/red.py index 6dc95d504..958968744 100644 --- a/red.py +++ b/red.py @@ -245,6 +245,7 @@ def set_logger(): stdout_handler = logging.StreamHandler(sys.stdout) stdout_handler.setFormatter(red_format) + stdout_handler.setLevel(logging.INFO) fhandler = logging.handlers.RotatingFileHandler( filename='data/red/red.log', encoding='utf-8', mode='a',