From bbfecdfced2c640112f300cb3774181cf77b47a8 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Sat, 15 Jul 2017 23:30:50 +0200 Subject: [PATCH] events: fix help when no event is defined --- modules/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/events.py b/modules/events.py index 2887514..a35c28b 100644 --- a/modules/events.py +++ b/modules/events.py @@ -16,7 +16,7 @@ from more import Response def help_full (): - return "This module store a lot of events: ny, we, " + (", ".join(context.datas.index.keys())) + "\n!eventslist: gets list of timer\n!start /something/: launch a timer" + return "This module store a lot of events: ny, we, " + (", ".join(context.datas.index.keys() if hasattr(context, "datas") else [])) + "\n!eventslist: gets list of timer\n!start /something/: launch a timer" def load(context):