pretty will always be in event but it might be None

This commit is contained in:
jesopo 2019-11-14 11:55:59 +00:00
parent 9abc668c0a
commit 9af23c686d

View file

@ -11,8 +11,7 @@ from src import EventManager, ModuleManager, utils
class Module(ModuleManager.BaseModule):
def _print(self, event):
line = event["line"]
if ("pretty" in event and
self.bot.get_setting("pretty-activity", False)):
if event["pretty"] and self.bot.get_setting("pretty-activity", False):
line = event["pretty"]
self.bot.log.info("%s%s | %s", [